Skip to content

Commit 38cd55e

Browse files
mariovalneyjdalton
authored andcommitted
Fix sort-order test
Test should return a promise Fixed the promise chain
1 parent 565a16f commit 38cd55e

File tree

1 file changed

+10
-6
lines changed
  • test/options/sort-order/process

1 file changed

+10
-6
lines changed

test/options/sort-order/process/test.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,16 @@ describe('Option `sort-order`, process', function() {
5959
let input = test.readFile('multiple-groups-2.css');
6060
let expected = test.readFile('multiple-groups-2.expected.css');
6161

62-
test.comb.processString(input)
63-
.then(test.comb.processString)
64-
.then(test.comb.processString)
65-
.then(test.comb.processString)
66-
.then(test.comb.processString)
67-
.then(test.comb.processString)
62+
const processStringAgain = () => {
63+
return test.comb.processString(input);
64+
};
65+
66+
return test.comb.processString(input)
67+
.then(processStringAgain)
68+
.then(processStringAgain)
69+
.then(processStringAgain)
70+
.then(processStringAgain)
71+
.then(processStringAgain)
6872
.then(function(actual) {
6973
assert.equal(actual, expected);
7074
});

0 commit comments

Comments
 (0)