File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-env jest, node */
1
+ /* eslint-env jest */
2
2
import postcss from "postcss" ;
3
3
import stripIndent from "strip-indent" ;
4
4
import plugin from "../src" ;
@@ -617,19 +617,11 @@ test("not localize keyframes rules", () => {
617
617
618
618
test ( "generates default scoped name" , ( ) => {
619
619
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
+ / ^ : e x p o r t \{ \s + f o o : f i l e _ _ f o o - - - \w + \s + \} \s + .f i l e _ _ f o o - - - \w + \{ \} $ /
633
625
) ;
634
626
} ) ;
635
627
You can’t perform that action at this time.
0 commit comments