Skip to content

Commit

Permalink
Merge pull request #367 from jtangelder/add/module-dot-name-test
Browse files Browse the repository at this point in the history
Add test cases for #360
  • Loading branch information
jhnns authored Feb 7, 2017
2 parents 41af62a + d250cf0 commit b387510
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
3 changes: 3 additions & 0 deletions test/node_modules/animate.css/animate.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test/sass/from-include-path/animate.css/animate.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.animate-css {
background: hotpink;
}
1 change: 1 addition & 0 deletions test/sass/import-include-paths.sass
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import include-path-module
@import underscore-include-path-module
@import animate.css/animate
10 changes: 7 additions & 3 deletions test/sass/imports.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
@import another/module
/* @import another/underscore */
@import another/underscore
/* @import ~sass/underscore */
@import ~sass/underscore
// Import a module with a dot in its name
// @see https://github.com/jtangelder/sass-loader/issues/167
/* @import ~sass/some.module */
@import ~sass/some.module
/* @import ~sass/underscore */
@import ~sass/underscore
@import url(http://example.com/something/from/the/interwebs)
// @see https://github.com/jtangelder/sass-loader/issues/360
/* @import ~animate.css/animate */
@import ~animate.css/animate
/* @import url(http://example.com/something/from/the/interwebs); */
@import url(http://example.com/something/from/the/interwebs);
3 changes: 3 additions & 0 deletions test/scss/from-include-path/animate.css/animate.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.animate-css {
background: hotpink;
}
1 change: 1 addition & 0 deletions test/scss/import-include-paths.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "include-path-module";
@import "underscore-include-path-module";
@import "animate.css/animate";
8 changes: 6 additions & 2 deletions test/scss/imports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
@import "another/module";
/* @import "another/underscore"; */
@import "another/underscore";
/* @import "~scss/underscore"; */
@import "~scss/underscore";
// Import a module with a dot in its name
// @see https://github.com/jtangelder/sass-loader/issues/167
/* @import "~scss/some.module"; */
@import "~scss/some.module";
/* @import "~t~scss/underscore"; */
@import "~scss/underscore";
// @see https://github.com/jtangelder/sass-loader/issues/360
/* @import "~animate.css/animate"; */
@import "~animate.css/animate";
/* @import url(http://example.com/something/from/the/interwebs); */
@import url(http://example.com/something/from/the/interwebs);

0 comments on commit b387510

Please sign in to comment.