Skip to content

Commit 45c0d3a

Browse files
committed
Move test config files into a directory
1 parent 51e4caa commit 45c0d3a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

test/test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ describe('cli', function() {
360360
});
361361

362362
it('should read from a file and write to a file', function(done) {
363-
exec('node bin/suitcss -c test/noautoprefixer.config.js test/fixtures/cli/input.css test/fixtures/cli/output.css', function(err) {
363+
exec('node bin/suitcss -c test/config/noautoprefixer.config.js test/fixtures/cli/input.css test/fixtures/cli/output.css', function(err) {
364364
if (err) return done(err);
365365
var res = read('fixtures/cli/output');
366366
expect(res).to.equal(output);
@@ -369,15 +369,15 @@ describe('cli', function() {
369369
});
370370

371371
it('should read from a file and write to stdout', function(done) {
372-
exec('node bin/suitcss -L -c test/noautoprefixer.config.js test/fixtures/cli/input.css', function(err, stdout) {
372+
exec('node bin/suitcss -L -c test/config/noautoprefixer.config.js test/fixtures/cli/input.css', function(err, stdout) {
373373
if (err) return done(err);
374374
expect(stdout).to.equal(output);
375375
done();
376376
});
377377
});
378378

379379
it('should read from stdin and write to stdout', function(done) {
380-
var testChild = exec('node bin/suitcss -L -c test/noautoprefixer.config.js', function(err, stdout) {
380+
var testChild = exec('node bin/suitcss -L -c test/config/noautoprefixer.config.js', function(err, stdout) {
381381
if (err) return done(err);
382382
expect(stdout).to.equal(output);
383383
done();
@@ -388,15 +388,15 @@ describe('cli', function() {
388388
});
389389

390390
it('should log on verbose', function(done) {
391-
exec('node bin/suitcss -v -c test/noautoprefixer.config.js test/fixtures/cli/input.css test/fixtures/cli/output.css', function(err, stdout) {
391+
exec('node bin/suitcss -v -c test/config/noautoprefixer.config.js test/fixtures/cli/input.css test/fixtures/cli/output.css', function(err, stdout) {
392392
if (err) return done(err);
393393
expect(stdout).to.contain('write');
394394
done();
395395
});
396396
});
397397

398398
it('should allow configurable import root', function(done) {
399-
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css', function(err) {
399+
exec('node bin/suitcss -i test/fixtures -c test/config/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css', function(err) {
400400
if (err) return done(err);
401401
var res = read('fixtures/cli/output');
402402
var expected = read('fixtures/component.out');
@@ -406,15 +406,15 @@ describe('cli', function() {
406406
});
407407

408408
it('should output stylelint warnings', function(done) {
409-
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/stylelint-import.css test/fixtures/cli/output.css -l', function(err, stdout) {
409+
exec('node bin/suitcss -i test/fixtures -c test/config/noautoprefixer.config.js test/fixtures/stylelint-import.css test/fixtures/cli/output.css -l', function(err, stdout) {
410410
if (err) return done(err);
411411
expect(stdout).to.contain('Expected indentation of 2 spaces');
412412
done();
413413
});
414414
});
415415

416416
it('should minify the output', function(done) {
417-
exec('node bin/suitcss -i test/fixtures -c test/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css -m', function(err) {
417+
exec('node bin/suitcss -i test/fixtures -c test/config/noautoprefixer.config.js test/fixtures/import.css test/fixtures/cli/output.css -m', function(err) {
418418
if (err) return done(err);
419419
var res = read('fixtures/cli/output');
420420
var expected = read('fixtures/minify.out');
@@ -424,7 +424,7 @@ describe('cli', function() {
424424
});
425425

426426
it('should allow a config file to be passed', function(done) {
427-
exec('node bin/suitcss -i test/fixtures -c test/test.config.js test/fixtures/config.css test/fixtures/cli/output.css', function(err) {
427+
exec('node bin/suitcss -i test/fixtures -c test/config/test.config.js test/fixtures/config.css test/fixtures/cli/output.css', function(err) {
428428
if (err) return done(err);
429429
var res = read('fixtures/cli/output');
430430
var expected = read('fixtures/config.out');
@@ -443,7 +443,7 @@ describe('cli', function() {
443443
});
444444

445445
it('should log on non-existant file', function(done) {
446-
exec('node bin/suitcss -c test/noautoprefixer.config.js test/fixtures/cli/non-existant.css', function(err, stdout, stderr) {
446+
exec('node bin/suitcss -c test/config/noautoprefixer.config.js test/fixtures/cli/non-existant.css', function(err, stdout, stderr) {
447447
expect(err).to.be.an('error');
448448
expect(err.code).to.equal(1);
449449
expect(stderr).to.contain('not found');

0 commit comments

Comments
 (0)