Skip to content

Commit

Permalink
Fix sort-order test
Browse files Browse the repository at this point in the history
Test should return a promise
Fixed the promise chain
  • Loading branch information
mariovalney authored and jdalton committed Apr 18, 2019
1 parent 565a16f commit 38cd55e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/options/sort-order/process/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ describe('Option `sort-order`, process', function() {
let input = test.readFile('multiple-groups-2.css');
let expected = test.readFile('multiple-groups-2.expected.css');

test.comb.processString(input)
.then(test.comb.processString)
.then(test.comb.processString)
.then(test.comb.processString)
.then(test.comb.processString)
.then(test.comb.processString)
const processStringAgain = () => {
return test.comb.processString(input);
};

return test.comb.processString(input)
.then(processStringAgain)
.then(processStringAgain)
.then(processStringAgain)
.then(processStringAgain)
.then(processStringAgain)
.then(function(actual) {
assert.equal(actual, expected);
});
Expand Down

0 comments on commit 38cd55e

Please sign in to comment.