Skip to content

Commit cbc66dd

Browse files
committed
added a few test cases for compose-with
1 parent 97d3d6b commit cbc66dd

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Since we're exporting class names, there's no reason to export only one. This ca
4242
box-shadow: 0 0 4px -2px;
4343
}
4444
:local(.continueButton) {
45-
composes: globalButtonStyle;
45+
compose-with: globalButtonStyle;
4646
color: green;
4747
}
4848
```
@@ -59,7 +59,7 @@ becomes:
5959
box-shadow: 0 0 4px -2px;
6060
}
6161
:local(.continueButton) {
62-
extends: globalButtonStyle;
62+
compose-with: globalButtonStyle;
6363
color: green;
6464
}
6565
```
@@ -83,8 +83,7 @@ npm test
8383

8484
## Development
8585

86-
- `npm watch` will watch `src` for changes and rebuild
87-
- `npm autotest` will watch `src` and `test` for changes and retest
86+
- `npm autotest` will watch `src` and `test` for changes and run the tests
8887

8988
## License
9089

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
:local(.otherClass) { background: red; } :local(.exportName) { composes: otherClass; color: green; }
1+
:local(.otherClass) { background: red; } :local(.exportName) { compose-with: otherClass; color: green; }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
:local(.otherClass) { background: red; }
22
:local(.andAgain) { font-size: 2em; }
33
:local(.aThirdClass) { color: red; }
4-
:local(.exportName) { composes: otherClass andAgain; composes: aThirdClass; color: green; }
4+
:local(.exportName) { compose-with: otherClass andAgain; compose-with: aThirdClass; color: green; }

0 commit comments

Comments
 (0)