Browse Source

Standardized the equality checks to `to.equal()`.

fredck 11 years ago
parent
commit
64881162c5
2 changed files with 5 additions and 5 deletions
  1. 2 2
      tests/ckeditor/basepath.js
  2. 3 3
      tests/ckeditor/ckeditor.js

+ 2 - 2
tests/ckeditor/basepath.js

@@ -19,7 +19,7 @@ describe( 'basePath', function() {
 	it( 'should work with script tags', function( done ) {
 		CKEDITOR.require( [ 'ckeditor' ], function( CKEDITOR ) {
 			addScript( 'http://bar.com/ckeditor/ckeditor.js' );
-			expect( CKEDITOR._getBasePath() ).equals( 'http://bar.com/ckeditor/' );
+			expect( CKEDITOR._getBasePath() ).to.equal( 'http://bar.com/ckeditor/' );
 			done();
 		} );
 	} );
@@ -27,7 +27,7 @@ describe( 'basePath', function() {
 	it( 'should work with the CKEDITOR_BASEPATH global', function( done ) {
 		CKEDITOR.require( [ 'ckeditor' ], function( CKEDITOR ) {
 			window.CKEDITOR_BASEPATH = 'http://foo.com/ckeditor/';
-			expect( CKEDITOR._getBasePath() ).equals( 'http://foo.com/ckeditor/' );
+			expect( CKEDITOR._getBasePath() ).to.equal( 'http://foo.com/ckeditor/' );
 			done();
 		} );
 	} );

+ 3 - 3
tests/ckeditor/ckeditor.js

@@ -14,9 +14,9 @@ describe( 'getPluginPath()', function() {
 			var path = CKEDITOR.getPluginPath( 'test' );
 
 			if ( CKEDITOR.isDev ) {
-				expect( path ).equals( basePath + 'node_modules/ckeditor-plugin-test/src/' );
+				expect( path ).to.equal( basePath + 'node_modules/ckeditor-plugin-test/src/' );
 			} else {
-				expect( path ).equals( basePath + 'plugins/test/' );
+				expect( path ).to.equal( basePath + 'plugins/test/' );
 			}
 			done();
 		} );
@@ -33,7 +33,7 @@ describe( 'getPluginPath()', function() {
 			var basePath = CKEDITOR.basePath;
 			var path = CKEDITOR.getPluginPath( 'test' );
 
-			expect( path ).equals( basePath + 'plugins/test/' );
+			expect( path ).to.equal( basePath + 'plugins/test/' );
 
 			CKEDITOR.getPluginPath = originalGetPluginPath;