diff --git a/test/easy-import.js b/test/easy-import.js index 22fb4e9..d2fd4bd 100644 --- a/test/easy-import.js +++ b/test/easy-import.js @@ -3,7 +3,7 @@ const easyImport = require('../index.js'); const path = require('path'); const postcss = require('postcss'); -const msg = err => 'postcss-easy-import: ' + err; +const msg = err => ({message: 'postcss-easy-import: ' + err}); // for tests to work with ava >=0.18 process.chdir(__dirname); diff --git a/test/resolve-glob.js b/test/resolve-glob.js index fdfd687..d9c778d 100644 --- a/test/resolve-glob.js +++ b/test/resolve-glob.js @@ -95,7 +95,7 @@ test('should resolve every match if prefix is not defined', t => { // eslint-dis extensions: ['.css', '.scss'], path: [] }).then(result => { - t.deepEqual(result, [ + t.deepEqual(result.sort(), [ 'prefixed/without/_baz.css', 'prefixed/without/_foo.css', 'prefixed/without/_z.css', @@ -104,7 +104,7 @@ test('should resolve every match if prefix is not defined', t => { // eslint-dis 'prefixed/without/file.css', 'prefixed/without/foo.css', 'prefixed/without/z.css' - ].map(resolve)); + ].map(resolve).sort()); }); });