| 1234567891011121314151617181920212223242526 |
- /**
- * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- import spy from '../src/spy';
- describe( 'utils', () => {
- describe( 'spy', () => {
- it( 'should not have `called` after creation', () => {
- const fn = spy();
- expect( fn.called ).to.not.be.true;
- } );
- it( 'should register calls', () => {
- const fn1 = spy();
- const fn2 = spy();
- fn1();
- expect( fn1.called ).to.be.true;
- expect( fn2.called ).to.not.be.true;
- } );
- } );
- } );
|