Sfoglia il codice sorgente

Added a test to ensure that spy.called is not true after spy creation.

fredck 11 anni fa
parent
commit
d41821cd25
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      packages/ckeditor5-engine/tests/utils/utils.js

+ 8 - 0
packages/ckeditor5-engine/tests/utils/utils.js

@@ -40,6 +40,14 @@ describe( 'extend()', function() {
 } );
 
 describe( 'spy', function() {
+	it( 'should not have `called` after creation', function() {
+		var utils = modules.utils;
+
+		var spy = utils.spy();
+
+		expect( spy.called ).to.not.be.true();
+	} );
+
 	it( 'should register calls', function() {
 		var utils = modules.utils;