Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/node-sass/test/api.js')
-rw-r--r--node_modules/node-sass/test/api.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/node_modules/node-sass/test/api.js b/node_modules/node-sass/test/api.js
index a26254a..5db3113 100644
--- a/node_modules/node-sass/test/api.js
+++ b/node_modules/node-sass/test/api.js
@@ -63,6 +63,26 @@ describe('api', function() {
});
});
+ it('should not generate source map when not requested', function(done) {
+ sass.render({
+ file: fixture('simple/index.scss'),
+ sourceMap: false
+ }, function(error, result) {
+ assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
+ done();
+ });
+ });
+
+ it('should not generate source map without outFile and no explicit path given', function(done) {
+ sass.render({
+ file: fixture('simple/index.scss'),
+ sourceMap: true
+ }, function(error, result) {
+ assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
+ done();
+ });
+ });
+
it('should compile generate map with sourceMapRoot pass-through option', function(done) {
sass.render({
file: fixture('simple/index.scss'),
@@ -1348,6 +1368,26 @@ describe('api', function() {
done();
});
+ it('should not generate source map when not requested', function(done) {
+ var result = sass.renderSync({
+ file: fixture('simple/index.scss'),
+ sourceMap: false
+ });
+
+ assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
+ done();
+ });
+
+ it('should not generate source map without outFile and no explicit path given', function(done) {
+ var result = sass.renderSync({
+ file: fixture('simple/index.scss'),
+ sourceMap: true
+ });
+
+ assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
+ done();
+ });
+
it('should compile generate map with sourceMapRoot pass-through option', function(done) {
var result = sass.renderSync({
file: fixture('simple/index.scss'),