Skip to content

Commit

Permalink
Autoprefixer test case: Enable sourceMapContents
Browse files Browse the repository at this point in the history
  • Loading branch information
backflip committed May 8, 2015
1 parent 7315caa commit 7ba145a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/main.js
Expand Up @@ -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);
}))
Expand Down

0 comments on commit 7ba145a

Please sign in to comment.