Browse Source

Upgraded tests to the latest Chai and Sinon version.

Kamil Piechaczek 8 years ago
parent
commit
2da3c48e1a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/ckeditor5-adapter-ckfinder/tests/uploadadapter.js

+ 4 - 4
packages/ckeditor5-adapter-ckfinder/tests/uploadadapter.js

@@ -21,7 +21,7 @@ describe( 'CKFinderUploadAdapter', () => {
 		const editorElement = document.createElement( 'div' );
 		document.body.appendChild( editorElement );
 
-		sinonXHR = testUtils.sinon.useFakeXMLHttpRequest();
+		sinonXHR = testUtils.sinon.useFakeServer();
 
 		return ClassicTestEditor.create( editorElement, {
 			plugins: [ Image, ImageUpload, CKFinderUploadAdapter ],
@@ -54,9 +54,9 @@ describe( 'CKFinderUploadAdapter', () => {
 		} );
 
 		it( 'crateAdapter method should be registered and have upload and abort methods', () => {
-			expect( adapter ).to.be.defined;
-			expect( adapter.upload ).to.be.function;
-			expect( adapter.abort ).to.be.function;
+			expect( adapter ).to.not.be.undefined;
+			expect( adapter.upload ).to.be.a( 'function' );
+			expect( adapter.abort ).to.be.a( 'function' );
 		} );
 
 		it( 'should log warning when there is no configuration', () => {