From cff205b013d7f3acdd57c192e8011546e78daf81 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Sun, 10 May 2015 05:27:08 -0400 Subject: [PATCH] Add file name and line:column to error test --- test/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/main.js b/test/main.js index b31536e..6d27440 100644 --- a/test/main.js +++ b/test/main.js @@ -123,7 +123,12 @@ describe('gulp-sass -- async compile', function() { var stream = sass(); stream.on('error', function(err) { + // Error must include message body err.message.indexOf('property "font" must be followed by a \':\'').should.not.equal(-1); + // Error must include file error occurs in + err.message.indexOf('test/scss/error.scss').should.not.equal(-1); + // Error must include line and column error occurs on + err.message.indexOf('2:7').should.not.equal(-1); done(); }); stream.write(errorFile);