|
@@ -623,12 +623,12 @@ describe( 'build-utils', () => {
|
|
|
const files = [
|
|
const files = [
|
|
|
new Vinyl( {
|
|
new Vinyl( {
|
|
|
cwd: './',
|
|
cwd: './',
|
|
|
- path: 'foo/bar/theme.scss',
|
|
|
|
|
|
|
+ path: 'aaa/aaa/theme.scss',
|
|
|
contents: new Buffer( '' )
|
|
contents: new Buffer( '' )
|
|
|
} ),
|
|
} ),
|
|
|
new Vinyl( {
|
|
new Vinyl( {
|
|
|
cwd: './',
|
|
cwd: './',
|
|
|
- path: 'baz/qux/theme.scss',
|
|
|
|
|
|
|
+ path: 'zzz/ckeditor5-theme-quz/theme.scss',
|
|
|
contents: new Buffer( '' )
|
|
contents: new Buffer( '' )
|
|
|
} ),
|
|
} ),
|
|
|
new Vinyl( {
|
|
new Vinyl( {
|
|
@@ -667,9 +667,11 @@ describe( 'build-utils', () => {
|
|
|
}, () => {
|
|
}, () => {
|
|
|
expect( compiledThemePath ).to.be.equal( 'abc.css' );
|
|
expect( compiledThemePath ).to.be.equal( 'abc.css' );
|
|
|
expect( compiledThemeCss.toString() ).to.be.equal(
|
|
expect( compiledThemeCss.toString() ).to.be.equal(
|
|
|
-`/*! C:\\win\\dows\\theme.scss */
|
|
|
|
|
-/*! baz/qux/theme.scss */
|
|
|
|
|
-/*! foo/bar/theme.scss */
|
|
|
|
|
|
|
+// Note: Order matters. The first one should be ckeditor5-theme-* in order
|
|
|
|
|
+// to provide necessary dependencies (mixins, vars) for the following files.
|
|
|
|
|
+`/*! zzz/ckeditor5-theme-quz/theme.scss */
|
|
|
|
|
+/*! aaa/aaa/theme.scss */
|
|
|
|
|
+/*! C:\\win\\dows\\theme.scss */
|
|
|
` );
|
|
` );
|
|
|
|
|
|
|
|
done();
|
|
done();
|