Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Mar 30, 2017
1 parent d4e550e commit 3e19b54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/node-sass
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ function watch(options, emitter) {
graph = buildGraph(options);
});

if (!options.quiet) {
emitter.emit('warn', util.format('Watching %s', options.directory || options.src));
if (process.NODE_ENV === 'test') {
emitter.emit('warn', 'TESTING');
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"coverage": "node scripts/coverage.js",
"install": "node scripts/install.js",
"postinstall": "node scripts/build.js",
"lint": "node_modules/.bin/eslint bin/node-sass lib scripts test",
"test": "node_modules/.bin/mocha test/cli.js",
"lint": "eslint bin/node-sass lib scripts test",
"test": "mocha test/cli.js",
"build": "node scripts/build.js --force",
"prepublish": "not-in-install && node scripts/prepublish.js || in-install"
},
Expand Down
11 changes: 6 additions & 5 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ var assert = require('assert'),
glob = require('glob'),
rimraf = require('rimraf'),
stream = require('stream'),
once = require('lodash.once'),
spawn = require('cross-spawn'),
cli = path.join(__dirname, '..', 'bin', 'node-sass'),
touch = require('touch'),
tmpDir = require('unique-temp-dir'),
fixture = path.join.bind(null, __dirname, 'fixtures');

process.NODE_ENV = 'test';

describe.only('cli', function() {
// For some reason we experience random timeout failures in CI
// due to spawn hanging/failing silently. See #1692.
// this.retries(4);

describe('node-sass < in.scss', function() {
describe.only('node-sass < in.scss', function() {
it('should read data from stdin', function(done) {
var src = fs.createReadStream(fixture('simple/index.scss'));
var expected = read(fixture('simple/expected.css'), 'utf8').trim();
Expand Down Expand Up @@ -664,7 +665,7 @@ describe.only('cli', function() {

});

describe('node-sass --follow --output output-dir input-dir', function() {
describe.only('node-sass --follow --output output-dir input-dir', function() {
it('should compile with the --follow option', function(done) {
var src = fixture('follow/input-dir');
var dest = fixture('follow/output-dir');
Expand All @@ -690,7 +691,7 @@ describe.only('cli', function() {
});
});

describe('importer', function() {
describe.only('importer', function() {
var dest = fixture('include-files/index.css');
var src = fixture('include-files/index.scss');
var expected = read(fixture('include-files/expected-importer.css'), 'utf8').trim().replace(/\r\n/g, '\n');
Expand Down Expand Up @@ -817,7 +818,7 @@ describe.only('cli', function() {
});
});

describe('functions', function() {
describe.only('functions', function() {
it('should let custom functions call setter methods on wrapped sass values (number)', function(done) {
var dest = fixture('custom-functions/setter.css');
var src = fixture('custom-functions/setter.scss');
Expand Down

0 comments on commit 3e19b54

Please sign in to comment.