Commit 1c3c5e63 by Steven Luscher

Added a test for the imagePath option. The image-url() function should prepend a…

Added a test for the imagePath option. The image-url() function should prepend a user-configurable image path.
parent c215ba33
body {
background-image: image-url('image.png');
}
......@@ -133,6 +133,21 @@ describe("compile file with include paths", function(){
});
});
describe("compile file with image path", function(){
it("should compile with render", function(done) {
sass.render({
file: path.resolve(__dirname, "image_path.scss"),
imagePath: '/path/to/images',
success: function (css) {
done(assert.equal(css, "body {\n background-image: url(\"/path/to/images/image.png\"); }\n"));
},
error: function (error) {
done(error);
}
});
});
});
describe("compile file", function() {
it("should compile with render", function(done) {
sass.render({
......
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