Add a sass file to the inheritance test

This commit is contained in:
Vincent Prouillet 2015-03-25 19:49:52 +00:00
parent 25ee16f9d6
commit de6af93958
4 changed files with 11 additions and 2 deletions

View file

@ -1,6 +1,9 @@
body {
background: pink; }
footer {
background: red; }
.error, .badError {
border: #f00;
background: #fdd; }

View file

@ -5,7 +5,6 @@ var gutil = require('gulp-util');
var path = require('path');
var fs = require('fs');
var sass = require('../index');
var assert = require('assert');
var createVinyl = function createVinyl(filename, contents) {
var base = path.join(__dirname, 'scss');
@ -131,6 +130,7 @@ describe('gulp-sass -- async compile', function() {
// Expected sources are relative to file.base
var expectedSources = [
'includes/_cats.scss',
'includes/_dogs.sass',
'inheritance.scss'
];
@ -148,7 +148,7 @@ describe('gulp-sass -- async compile', function() {
stream = sass();
stream.on('data', function(cssFile) {
should.exist(cssFile.sourceMap);
assert.deepEqual(cssFile.sourceMap.sources, expectedSources);
cssFile.sourceMap.sources.should.eql(expectedSources);
done();
});
stream.write(sassFile);

View file

@ -0,0 +1,5 @@
$blue: #3bbfce;
$margin: 16px;
footer
background: red;

View file

@ -1,4 +1,5 @@
@import "includes/cats";
@import "includes/dogs";
.error {
border: #f00;