Skip to content

Commit

Permalink
Merge pull request #451 from peterramsing/445-fix-check-test-function
Browse files Browse the repository at this point in the history
I hate async sometimes - revert for now
  • Loading branch information
peterramsing committed May 27, 2022
2 parents 2e68b36 + 3bf22d2 commit 49c96c8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/check.js
Expand Up @@ -6,13 +6,9 @@ const cleanCss = require('clean-css');
const postcss = require('postcss');

module.exports = function check(input, output, options) {
const cleanOutput = new cleanCss({}).minify(output);
let processor = postcss([lost(options)]);
let cleanInput = new cleanCss({}).minify(processor.process(input).css);
let cleanOutput = new cleanCss({}).minify(output);

postcss([lost(options)])
.process(input)
.then(async (result) => {
const cleanInput = new cleanCss({}).minify(result.css);

expect(cleanOutput.styles).to.equal(cleanInput.styles);
});
expect(cleanInput.styles).to.equal(cleanOutput.styles);
};

0 comments on commit 49c96c8

Please sign in to comment.