Skip to content

Commit 41dcbdf

Browse files
committed
Add initial (failing) node-sass test case.
1 parent fe4b328 commit 41dcbdf

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"devDependencies": {
99
"browserify": "9.0.8",
1010
"classnames": "1.2.1",
11+
"mocha": "2.2.4",
12+
"node-sass": "2.1.1",
1113
"react": "0.13.2",
12-
"reactify": "1.1.0",
13-
"mocha": "2.2.4"
14+
"reactify": "1.1.0"
1415
},
1516
"scripts": {
1617
"test": "mocha test/suite.js"

test/cases/browserify/MyComponent.scss renamed to test/cases/node-sass/MyComponent.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
}
77
}
88

9+
.lib-herp {
10+
color: green;
11+
}
12+
913
@import 'SubComponent';

test/cases/node-sass/expected.out

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.MyComponent-foo .MyComponent-bar-x .MyComponent-baz_y {
2+
color: red; }
3+
4+
.MyComponent-lib-herp {
5+
color: green; }
6+
7+
.SubComponent-something {
8+
color: blue; }
9+

test/cases/node-sass/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"scripts": {
3+
"test": "node-sass --stdout --output-style=expanded MyComponent.scss"
4+
}
5+
}

0 commit comments

Comments
 (0)