Skip to content

Commit

Permalink
test: add tests for unicode character (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored and michael-ciniawsky committed May 9, 2017
1 parent 1508570 commit ca396ea
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
);
Expand Down
1 change: 1 addition & 0 deletions test/sass/another/variables.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$n-ary-summation: '\2211'
11 changes: 11 additions & 0 deletions test/sass/language.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@import "another/variables"

$font-stack: Helvetica, sans-serif
$primary-color: #333
$pi: '\e0C6'

body
font: 100% $font-stack
Expand Down Expand Up @@ -45,3 +48,11 @@ nav
@extend .message
border-color: yellow

.foo
&:before
content: $pi

.bar
&:before
content: $n-ary-summation

1 change: 1 addition & 0 deletions test/scss/another/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$n-ary-summation: '\2211'
15 changes: 15 additions & 0 deletions test/scss/language.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@import "another/variables";

$font-stack: Helvetica, sans-serif;
$primary-color: #333;
$pi: '\e0C6';

body {
font: 100% $font-stack;
Expand Down Expand Up @@ -30,3 +33,15 @@ nav {
}

.box { @include border-radius(10px); }

.foo {
&:before {
content: $pi;
}
}

.bar {
&:before {
content: $n-ary-summation;
}
}

0 comments on commit ca396ea

Please sign in to comment.