Skip to content

Commit

Permalink
test compass error.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Feb 19, 2015
1 parent 44acafd commit 858074e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/compass_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,21 @@ describe('gulp-compass plugin', function() {
done();
});
});

it('test error content', function(done) {
compass(path.join(__dirname, 'sass/error.scss'), {
project: __dirname,
config_file: path.join(__dirname, 'config.rb'),
style: 'compressed',
css: 'css',
sass: 'sass',
logging: true
}, function(code, stdout, stderr, new_path, options) {
code.should.be.equal(1);
stderr.should.not.be.empty;
done();
});
});
});

describe('compass helper', function() {
Expand Down
2 changes: 2 additions & 0 deletions test/sass/error.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.error:
color: #ccc

0 comments on commit 858074e

Please sign in to comment.