Skip to content

Commit

Permalink
Updating tests for ava update and inconsistent iteration order
Browse files Browse the repository at this point in the history
  • Loading branch information
patorpey committed Mar 21, 2021
1 parent 2a01f23 commit 34b140b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/easy-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions test/resolve-glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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());
});
});

Expand Down

0 comments on commit 34b140b

Please sign in to comment.