Skip to content

Commit ffcd14d

Browse files
sthzggajus
authored andcommitted
fix: update test fixtures (#212)
* fix: update test fixtures Fixes #211 * chore: assert exception on use with missing import
1 parent 6e105bb commit ffcd14d

File tree

58 files changed

+204
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+204
-195
lines changed

test/fixtures/react-css-modules/adds module hot accept for CSS imports when file only contains import statements/expected.js

Lines changed: 0 additions & 7 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"use strict";
2+
3+
require("./bar.css");
4+
5+
if (module.hot) {
6+
module.hot.accept("./bar.css", function () {
7+
require("./bar.css");
8+
});
9+
}

test/fixtures/react-css-modules/adds module hot accept for CSS imports/expected.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"use strict";
2+
3+
require("./bar.css");
4+
5+
if (module.hot) {
6+
module.hot.accept("./bar.css", function () {
7+
require("./bar.css");
8+
});
9+
}
10+
11+
<div className="bar__a"></div>;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
import './bar.scss';
1+
"use strict";
2+
3+
require("./bar.scss");
24

35
<div className="bar__a_modified"></div>;

test/fixtures/react-css-modules/custom attribute mapping/expected.js

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

0 commit comments

Comments
 (0)