|
@@ -27,6 +27,12 @@ describe( 'dev-tasks', () => {
|
|
|
beforeEach( () => createSpies() );
|
|
beforeEach( () => createSpies() );
|
|
|
afterEach( () => restoreSpies() );
|
|
afterEach( () => restoreSpies() );
|
|
|
|
|
|
|
|
|
|
+ function restoreSpies() {
|
|
|
|
|
+ for ( let spy in spies ) {
|
|
|
|
|
+ spies[ spy ].restore();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
it( 'task should exists', () => expect( initTask ).to.be.a( 'function' ) );
|
|
it( 'task should exists', () => expect( initTask ).to.be.a( 'function' ) );
|
|
|
|
|
|
|
|
it( 'performs no action when no ckeditor dependencies are found', () => {
|
|
it( 'performs no action when no ckeditor dependencies are found', () => {
|
|
@@ -111,10 +117,4 @@ describe( 'dev-tasks', () => {
|
|
|
installGitHooks: sinon.stub( tools, 'installGitHooks' )
|
|
installGitHooks: sinon.stub( tools, 'installGitHooks' )
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- function restoreSpies() {
|
|
|
|
|
- for ( let spy in spies ) {
|
|
|
|
|
- spies[ spy ].restore();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
} );
|
|
} );
|