Skip to content

Commit d7a8aba

Browse files
committed
Fix tests broken by #6
1 parent dabbeb5 commit d7a8aba

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

__tests__/postcss-plugin.test.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,14 @@ describe("files", () => {
237237

238238
const content = await fs.readFile(dest);
239239

240-
expect(content.toString()).toEqual(
241-
`type ClassNames = "bar" | "baz" | "foo";`,
242-
);
240+
expect(content.toString()).toMatchInlineSnapshot(`
241+
"// This file is auto-generated with postcss-ts-classnames.
242+
243+
type ClassNames =
244+
| \\"bar\\"
245+
| \\"baz\\"
246+
| \\"foo\\";"
247+
`);
243248
});
244249

245250
test("can export the type file as a module", async () => {
@@ -257,9 +262,11 @@ describe("files", () => {
257262

258263
const content = await fs.readFile(dest);
259264

260-
expect(content.toString()).toEqual(
261-
`export type ClassNames = "foo";`,
262-
);
263-
});
265+
expect(content.toString()).toMatchInlineSnapshot(`
266+
"// This file is auto-generated with postcss-ts-classnames.
264267
268+
export type ClassNames =
269+
| \\"foo\\";"
270+
`);
271+
});
265272
});

0 commit comments

Comments
 (0)