@@ -32,10 +32,9 @@ test('0. default', async () => {
3232 contents . cjs0 ! ,
3333 / c j s \/ m o d u l e \/ i n d e x \. c j s / ,
3434 ) ;
35- expect ( cssModuleIndexJs ) . toMatchInlineSnapshot ( `
36- "import index_module from "./index.module.js";
37- "
38- ` ) ;
35+ expect ( cssModuleIndexJs ) . toContain (
36+ 'import index_module from "./index.module.js";' ,
37+ ) ;
3938 expect ( cssModuleIndexCjs ) . toContain (
4039 'const external_index_module_cjs_namespaceObject = require("./index.module.cjs");' ,
4140 ) ;
@@ -64,10 +63,9 @@ test('1. style.path: false', () => {
6463 contents . cjs1 ! ,
6564 / c j s \/ m o d u l e \/ i n d e x \. c j s / ,
6665 ) ;
67- expect ( cssModuleIndexJs ) . toMatchInlineSnapshot ( `
68- "import index_module from "@/module/index.module.js";
69- "
70- ` ) ;
66+ expect ( cssModuleIndexJs ) . toContain (
67+ 'import index_module from "@/module/index.module.js";' ,
68+ ) ;
7169 expect ( cssModuleIndexCjs ) . toContain (
7270 'const index_module_cjs_namespaceObject = require("@/module/index.module.cjs");' ,
7371 ) ;
@@ -96,10 +94,9 @@ test('2. style.extension: false', async () => {
9694 contents . cjs2 ! ,
9795 / c j s \/ m o d u l e \/ i n d e x \. c j s / ,
9896 ) ;
99- expect ( cssModuleIndexJs ) . toMatchInlineSnapshot ( `
100- "import index_module from "./index.module.less";
101- "
102- ` ) ;
97+ expect ( cssModuleIndexJs ) . toContain (
98+ 'import index_module from "./index.module.less";' ,
99+ ) ;
103100 expect ( cssModuleIndexCjs ) . toContain (
104101 'const external_index_module_less_namespaceObject = require("./index.module.less");' ,
105102 ) ;
@@ -128,10 +125,9 @@ test('3. style.path: false, style.extension: false', async () => {
128125 contents . cjs3 ! ,
129126 / c j s \/ m o d u l e \/ i n d e x \. c j s / ,
130127 ) ;
131- expect ( cssModuleIndexJs ) . toMatchInlineSnapshot ( `
132- "import index_module from "@/module/index.module.less";
133- "
134- ` ) ;
128+ expect ( cssModuleIndexJs ) . toContain (
129+ 'import index_module from "@/module/index.module.less";' ,
130+ ) ;
135131 expect ( cssModuleIndexCjs ) . toContain (
136132 'const index_module_cjs_namespaceObject = require("@/module/index.module.cjs");' ,
137133 ) ;
0 commit comments