|
|
@@ -65,9 +65,9 @@ describe( 'utils', () => {
|
|
|
sandbox.stub( tools, 'getDirectories', () => sourceDirectories );
|
|
|
const directories = ckeditor5Dirs.getDirectories( workspacePath );
|
|
|
|
|
|
- expect( directories.length ).equal( 2 );
|
|
|
- expect( directories[ 0 ] ).equal( 'ckeditor5-core' );
|
|
|
- expect( directories[ 1 ] ).equal( 'ckeditor5-plugin-image' );
|
|
|
+ expect( directories.length ).to.equal( 2 );
|
|
|
+ expect( directories[ 0 ] ).to.equal( 'ckeditor5-core' );
|
|
|
+ expect( directories[ 1 ] ).to.equal( 'ckeditor5-plugin-image' );
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
@@ -131,12 +131,12 @@ describe( 'utils', () => {
|
|
|
|
|
|
const directories = ckeditor5Dirs.getDevDirectories( workspacePath, packageJSONDependencies, ckeditor5Path );
|
|
|
|
|
|
- expect( directories.length ).equal( 2 );
|
|
|
- expect( directories[ 0 ] ).eql( {
|
|
|
+ expect( directories.length ).to.equal( 2 );
|
|
|
+ expect( directories[ 0 ] ).to.deep.equal( {
|
|
|
repositoryURL: 'ckeditor/ckeditor5-plugin-image',
|
|
|
repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-plugin-image'
|
|
|
} );
|
|
|
- expect( directories[ 1 ] ).eql( {
|
|
|
+ expect( directories[ 1 ] ).to.deep.equal( {
|
|
|
repositoryURL: 'ckeditor/ckeditor5-core',
|
|
|
repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-core'
|
|
|
} );
|
|
|
@@ -150,19 +150,19 @@ describe( 'utils', () => {
|
|
|
|
|
|
const directories = ckeditor5Dirs.getDevDirectories( workspacePath, packageJSONDependencies, ckeditor5Path, includeRoot );
|
|
|
|
|
|
- expect( directories.length ).equal( 3 );
|
|
|
- expect( directories[ 0 ] ).eql( {
|
|
|
+ expect( directories.length ).to.equal( 3 );
|
|
|
+ expect( directories[ 0 ] ).to.deep.equal( {
|
|
|
+ repositoryURL: 'ckeditor/ckeditor5',
|
|
|
+ repositoryPath: '/workspace/path/ckeditor5'
|
|
|
+ } );
|
|
|
+ expect( directories[ 1 ] ).to.deep.equal( {
|
|
|
repositoryURL: 'ckeditor/ckeditor5-plugin-image',
|
|
|
repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-plugin-image'
|
|
|
} );
|
|
|
- expect( directories[ 1 ] ).eql( {
|
|
|
+ expect( directories[ 2 ] ).to.deep.equal( {
|
|
|
repositoryURL: 'ckeditor/ckeditor5-core',
|
|
|
repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-core'
|
|
|
} );
|
|
|
- expect( directories[ 2 ] ).eql( {
|
|
|
- repositoryURL: 'ckeditor/ckeditor5',
|
|
|
- repositoryPath: '/workspace/path/ckeditor5'
|
|
|
- } );
|
|
|
} );
|
|
|
} );
|
|
|
} );
|