From 140c1ebecf27d23f8bbb3b8328e716388f153bc0 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 30 Mar 2015 08:11:00 -0400 Subject: [PATCH] Test should be that error is there, not that it is start of string --- test/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/main.js b/test/main.js index c47db60..ebec4e1 100644 --- a/test/main.js +++ b/test/main.js @@ -119,7 +119,7 @@ describe('gulp-sass -- async compile', function() { var stream = sass(); stream.on('error', function(err) { - err.message.indexOf('property "font" must be followed by a \':\'').should.equal(0); + err.message.indexOf('property "font" must be followed by a \':\'').should.not.equal(-1); done(); }); stream.write(errorFile); @@ -255,7 +255,7 @@ describe('gulp-sass -- sync compile', function() { var stream = sass.sync(); stream.on('error', function(err) { - err.message.indexOf('property "font" must be followed by a \':\'').should.equal(0); + err.message.indexOf('property "font" must be followed by a \':\'').should.not.equal(-1); done(); }); stream.write(errorFile);