Test should be that error is there, not that it is start of string
This commit is contained in:
parent
ca990d0981
commit
140c1ebecf
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue