Commit 9606e6b9 by Andrew Nesbitt

Merge pull request #482 from am11/master

Test: SourceMap in stats with renderSync
parents 17f4b549 5a21d0c7
......@@ -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