File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -243,11 +243,11 @@ describe("css-modules-dts-loader", () => {
243243 const dtsContent = readFile ( tmpDir , "styles.module.css.d.ts" ) ;
244244 expect ( normalizeLineEndings ( dtsContent ) ) . toMatchSnapshot ( ) ;
245245
246- // Should contain all class names
247- expect ( dtsContent ) . toContain ( "class" ) ;
248- expect ( dtsContent ) . toContain ( "export" ) ;
249- expect ( dtsContent ) . toContain ( "import " ) ;
250- expect ( dtsContent ) . toContain ( "validClass " ) ;
246+ expect ( dtsContent ) . toContain ( "export const validClass: string;" ) ;
247+
248+ expect ( dtsContent ) . not . toContain ( "export const class: string; " ) ;
249+ expect ( dtsContent ) . not . toContain ( "export const export: string; " ) ;
250+ expect ( dtsContent ) . not . toContain ( "export const import: string; " ) ;
251251 } ) ;
252252
253253 it ( "should handle JS keyword class names with namedExport=false" , async ( ) => {
You can’t perform that action at this time.
0 commit comments