Skip to content

Commit

Permalink
fixup! Remove beforeLint feature
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmith committed Sep 22, 2016
1 parent 5d907c1 commit c64ef84
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ describe('cli', function() {
var testChild = exec('node bin/suitcss -c test/noautoprefixer.config.js', function(err, stdout) {
if (err) return done(err);
expect(stdout).to.equal(output);
expect(stdout).to.not.contain('beforeLint ran');
done();
});

Expand All @@ -281,18 +280,16 @@ describe('cli', function() {
exec('node bin/suitcss -v -c test/noautoprefixer.config.js test/fixtures/cli/input.css test/fixtures/cli/output.css', function(err, stdout) {
if (err) return done(err);
expect(stdout).to.contain('write');
expect(stdout).to.not.contain('beforeLint ran');
done();
});
});

it('should allow configurable import root', function(done) {
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css', function(err, stdout) {
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css', function(err) {
if (err) return done(err);
var res = read('fixtures/cli/output');
var expected = read('fixtures/component.out');
expect(res).to.equal(expected);
expect(stdout).to.not.contain('beforeLint ran');
done();
});
});
Expand All @@ -306,11 +303,10 @@ describe('cli', function() {
});

it('should minify the output', function(done) {
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css -m', function(err, stdout) {
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css -m', function(err) {
if (err) return done(err);
var res = read('fixtures/cli/output');
var expected = read('fixtures/minify.out');
expect(stdout).to.not.contain('beforeLint ran');
expect(res).to.equal(expected);
done();
});
Expand Down

0 comments on commit c64ef84

Please sign in to comment.