Skip to content

Commit ca396ea

Browse files
evilebottnawimichael-ciniawsky
authored andcommitted
test: add tests for unicode character (#446)
1 parent 1508570 commit ca396ea

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
lines changed

test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe("sass-loader", () => {
195195
sourceMap.should.not.have.property("file");
196196
sourceMap.should.have.property("sourceRoot", fakeCwd);
197197
// This number needs to be updated if imports.scss or any dependency of that changes
198-
sourceMap.sources.should.have.length(7);
198+
sourceMap.sources.should.have.length(8);
199199
sourceMap.sources.forEach(sourcePath =>
200200
fs.existsSync(path.resolve(sourceMap.sourceRoot, sourcePath))
201201
);

test/sass/another/variables.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$n-ary-summation: '\2211'

test/sass/language.sass

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
@import "another/variables"
2+
13
$font-stack: Helvetica, sans-serif
24
$primary-color: #333
5+
$pi: '\e0C6'
36

47
body
58
font: 100% $font-stack
@@ -45,3 +48,11 @@ nav
4548
@extend .message
4649
border-color: yellow
4750

51+
.foo
52+
&:before
53+
content: $pi
54+
55+
.bar
56+
&:before
57+
content: $n-ary-summation
58+

test/scss/another/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$n-ary-summation: '\2211'

test/scss/language.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
@import "another/variables";
2+
13
$font-stack: Helvetica, sans-serif;
24
$primary-color: #333;
5+
$pi: '\e0C6';
36

47
body {
58
font: 100% $font-stack;
@@ -30,3 +33,15 @@ nav {
3033
}
3134

3235
.box { @include border-radius(10px); }
36+
37+
.foo {
38+
&:before {
39+
content: $pi;
40+
}
41+
}
42+
43+
.bar {
44+
&:before {
45+
content: $n-ary-summation;
46+
}
47+
}

0 commit comments

Comments
 (0)