<commit_before>'use strict';

var chai = require('chai');

var Metalsmith = require('metalsmith');
var cleanCSS = require('../lib');

var expect = chai.expect;

describe('metalsmith-clean-css', function() {


  it('should not match any file if an empty string is given', function(done) {
    var files = {
      'main.css': { contents: '  * { display: none; }  ' }
    };

    cleanCSS({ files: '' })(files, null, function() {
      expect(files['main.css'].contents).to.equal('  * { display: none; }  ');
      done();
    });
  });


  it('should match any CSS file with the default pattern', function(done) {
    var files = {
      'main.css':           { contents: '  * { display: none; }  ' },
      'long/path/main.css': { contents: '  * { display: none; }  ' }
    };<commit_msg>refactor: remove dead code<commit_after>'use strict';

var chai = require('chai');

var cleanCSS = require('../lib');

var expect = chai.expect;

describe('metalsmith-clean-css', function() {


  it('should not match any file if an empty string is given', function(done) {
    var files = {
      'main.css': { contents: '  * { display: none; }  ' }
    };

    cleanCSS({ files: '' })(files, null, function() {
      expect(files['main.css'].contents).to.equal('  * { display: none; }  ');
      done();
    });
  });


  it('should match any CSS file with the default pattern', function(done) {
    var files = {
      'main.css':           { contents: '  * { display: none; }  ' },
      'long/path/main.css': { contents: '  * { display: none; }  ' }
    };
{'fraction_non_alphanumeric': 0.1881060116354234, 'fraction_numerical': 0.0, 'mean_word_length': 2.7572815533980584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1436831', 'n_tokens_mistral': 516, 'n_tokens_neox': 497, 'n_words': 126}