Skip to content

Commit

Permalink
Merge pull request #359 from xzyfer/fix/dirty-tests
Browse files Browse the repository at this point in the history
Test runner should clean up after itself
  • Loading branch information
xzyfer committed Oct 25, 2015
2 parents 830e7f8 + 3b30b8a commit 623eebc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"gulp-sourcemaps": "^1.5.2",
"gulp-tap": "^0.1.3",
"mocha": "^2.2.1",
"rimraf": "^2.4.3",
"should": "^5.2.0"
}
}
5 changes: 5 additions & 0 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var gutil = require('gulp-util');
var path = require('path');
var fs = require('fs');
var sass = require('../index');
var rimraf = require('rimraf');
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var postcss = require('gulp-postcss');
Expand Down Expand Up @@ -257,6 +258,10 @@ describe('gulp-sass -- async compile', function() {
});

describe('gulp-sass -- sync compile', function() {
beforeEach(function(done) {
rimraf(path.join(__dirname, '/results/'), done);
});

it('should pass file when it isNull()', function(done) {
var stream = sass.sync();
var emptyFile = {
Expand Down

0 comments on commit 623eebc

Please sign in to comment.