Skip to content

Commit a17976a

Browse files
committed
Fix unix test
1 parent a17720e commit a17976a

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

test/test.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-env jest, node */
1+
/* eslint-env jest */
22
import postcss from "postcss";
33
import stripIndent from "strip-indent";
44
import plugin from "../src";
@@ -617,19 +617,11 @@ test("not localize keyframes rules", () => {
617617

618618
test("generates default scoped name", () => {
619619
return expect(
620-
compile(
621-
strip(`
622-
.foo {}
623-
`),
624-
{ from: "/path/to/file.css" }
625-
).then(result => result.css)
626-
).resolves.toEqual(
627-
strip(`
628-
:export {
629-
foo: file__foo---2jzU5
630-
}
631-
.file__foo---2jzU5 {}
632-
`)
620+
compile(strip(".foo {}"), { from: "/path/to/file.css" }).then(
621+
result => result.css
622+
)
623+
).resolves.toMatch(
624+
/^:export \{\s+foo: file__foo---\w+\s+\}\s+.file__foo---\w+ \{\}$/
633625
);
634626
});
635627

0 commit comments

Comments
 (0)