diff --git a/test/index.test.js b/test/index.test.js index d1338107..fe282366 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -195,7 +195,7 @@ describe("sass-loader", () => { sourceMap.should.not.have.property("file"); sourceMap.should.have.property("sourceRoot", fakeCwd); // This number needs to be updated if imports.scss or any dependency of that changes - sourceMap.sources.should.have.length(7); + sourceMap.sources.should.have.length(8); sourceMap.sources.forEach(sourcePath => fs.existsSync(path.resolve(sourceMap.sourceRoot, sourcePath)) ); diff --git a/test/sass/another/variables.sass b/test/sass/another/variables.sass new file mode 100644 index 00000000..83834dc5 --- /dev/null +++ b/test/sass/another/variables.sass @@ -0,0 +1 @@ +$n-ary-summation: '\2211' diff --git a/test/sass/language.sass b/test/sass/language.sass index 8c2fb339..bb888eb6 100644 --- a/test/sass/language.sass +++ b/test/sass/language.sass @@ -1,5 +1,8 @@ +@import "another/variables" + $font-stack: Helvetica, sans-serif $primary-color: #333 +$pi: '\e0C6' body font: 100% $font-stack @@ -45,3 +48,11 @@ nav @extend .message border-color: yellow +.foo + &:before + content: $pi + +.bar + &:before + content: $n-ary-summation + diff --git a/test/scss/another/_variables.scss b/test/scss/another/_variables.scss new file mode 100644 index 00000000..83834dc5 --- /dev/null +++ b/test/scss/another/_variables.scss @@ -0,0 +1 @@ +$n-ary-summation: '\2211' diff --git a/test/scss/language.scss b/test/scss/language.scss index ec1455c4..6b40b43f 100644 --- a/test/scss/language.scss +++ b/test/scss/language.scss @@ -1,5 +1,8 @@ +@import "another/variables"; + $font-stack: Helvetica, sans-serif; $primary-color: #333; +$pi: '\e0C6'; body { font: 100% $font-stack; @@ -30,3 +33,15 @@ nav { } .box { @include border-radius(10px); } + +.foo { + &:before { + content: $pi; + } +} + +.bar { + &:before { + content: $n-ary-summation; + } +}