| 12345678910111213141516171819202122232425262728 |
- /**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- 'use strict';
- import spy from '/ckeditor5/utils/spy.js';
- describe( 'utils', () => {
- describe( 'spy', () => {
- it( 'should not have `called` after creation', () => {
- let fn = spy();
- expect( fn.called ).to.not.be.true;
- } );
- it( 'should register calls', () => {
- let fn1 = spy();
- let fn2 = spy();
- fn1();
- expect( fn1.called ).to.be.true;
- expect( fn2.called ).to.not.be.true;
- } );
- } );
- } );
|