<commit_before>'use strict';

const expect = require('chai').expect;
const lost = require('../lost');
const cleanCss = require('clean-css');
const postcss = require('postcss');

module.exports = function check(input, output, options) {
  const 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);
    });
};
<commit_msg>I hate async sometimes - revert for now<commit_after>'use strict';

const expect = require('chai').expect;
const lost = require('../lost');
const cleanCss = require('clean-css');
const postcss = require('postcss');

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

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

{'fraction_non_alphanumeric': 0.17039922103213243, 'fraction_numerical': 0.0, 'mean_word_length': 5.0828402366863905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1721474', 'n_tokens_mistral': 318, 'n_tokens_neox': 309, 'n_words': 69}