From 34b140b00976e1b9d84f76b5924a2111a469943b Mon Sep 17 00:00:00 2001 From: Peter Torpey Date: Sat, 20 Mar 2021 21:12:29 -0700 Subject: [PATCH] Updating tests for ava update and inconsistent iteration order --- test/easy-import.js | 2 +- test/resolve-glob.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()); }); });