Skip to content

Commit 01e8eb6

Browse files
committed
ported tests from css-modules-loader-core to find possible regression
1 parent 8682c1f commit 01e8eb6

File tree

35 files changed

+260
-36
lines changed

35 files changed

+260
-36
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"mocha": "^2.2.5"
1414
},
1515
"scripts": {
16-
"test": "mocha test"
16+
"test": "mocha --compilers js:babel/register"
1717
},
1818
"repository": {
1919
"type": "git",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:export {
2+
blackShadow: x__single_import_export_colors__blackShadow;
3+
}
4+
5+
.x__single_import_export_colors__blackShadow {
6+
box-shadow: 0 0 10px -2px black;
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.x__single_import_export_colors__blackShadow {
2+
box-shadow: 0 0 10px -2px black;
3+
}
4+
.x__single_import_export_source__localName {
5+
color: red;
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"localName": "x__single_import_export_source__localName x__single_import_export_colors__blackShadow"
3+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:import("./colors.css") {
2+
i__tmp_import_djhgdsag: blackShadow;
3+
}
4+
5+
:export {
6+
localName: x__single_import_export_source__localName i__tmp_import_djhgdsag;
7+
}
8+
9+
.x__single_import_export_source__localName {
10+
color: red;
11+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:export {
2+
black: #222;
3+
white: #ddd;
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
.x__lol {
3+
color: #222;
4+
background: #ddd;
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"lol": "x__lol"
3+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:import("./colors.css") {
2+
i__black: black;
3+
i__white: white;
4+
}
5+
6+
:export {
7+
lol: x__lol;
8+
}
9+
10+
.x__lol {
11+
color: i__black;
12+
background: i__white;
13+
}

test/example.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)