Commit 5806afa7 by Dean Mao

add test for error status integer

parent 33b8ab53
...@@ -94,6 +94,18 @@ describe("compile scss", function() { ...@@ -94,6 +94,18 @@ describe("compile scss", function() {
}); });
}); });
it("should have a error status of 1 for bad css", function(done) {
sass.render({
data: '{zzz}',
success: function(css) {
},
error: function(error, status) {
assert.equal(status, 1);
done();
}
});
});
it("should match compiled string with renderSync", function(done) { it("should match compiled string with renderSync", function(done) {
done(assert.equal(sass.renderSync({data: scssStr}), expectedRender)); done(assert.equal(sass.renderSync({data: scssStr}), expectedRender));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment