File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments