Skip to content

Commit beef042

Browse files
committed
test: fix incorrect test logic
1 parent f1c9bf8 commit beef042

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/index.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)