Commit 5a21d0c7 by Adeel

Test: SourceMap in stats with renderSync

parent 6c6ab6b6
...@@ -311,3 +311,17 @@ describe('precision support', function() { ...@@ -311,3 +311,17 @@ describe('precision support', function() {
}); });
}); });
}); });
describe('compile with stats', function() {
it('should report correct sourceMap in stats with renderSync', function(done) {
var stats = {};
sass.renderSync({
file: sampleFilename,
stats: stats,
sourceComments: 'map',
sourceMap: true
});
done(assert.ok(stats.sourceMap.indexOf('sample.scss') !== -1));
});
});
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