From 7ba145a0ef80d2a44947a981f93eebc25550cc0b Mon Sep 17 00:00:00 2001 From: Thomas Jaggi Date: Fri, 8 May 2015 21:12:00 +0200 Subject: [PATCH] Autoprefixer test case: Enable sourceMapContents --- test/main.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/main.js b/test/main.js index 6e2e14be..45dbf415 100644 --- a/test/main.js +++ b/test/main.js @@ -395,15 +395,19 @@ describe('gulp-sass -- sync compile', function() { gulp.src(path.join(__dirname, '/scss/inheritance.scss')) .pipe(sourcemaps.init()) - .pipe(sass.sync()) - // .pipe(tap(function(file) { - // should.exist(file.sourceMap); - // file.sourceMap.sources.should.eql(expectedSources); - // })) + .pipe(sass.sync({ + 'sourceMapContents': true + })) + .pipe(tap(function(file) { + // console.log(file.sourceMap); + should.exist(file.sourceMap); + file.sourceMap.sources.should.eql(expectedSources); + })) .pipe(postcss([autoprefixer()])) .pipe(sourcemaps.write()) .pipe(gulp.dest(path.join(__dirname, '/results/'))) .pipe(tap(function(file) { + // console.log(file.sourceMap); should.exist(file.sourceMap); file.sourceMap.sources.should.eql(expectedSources); }))