Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 30, 2022
1 parent 0a15eb3 commit 605ca5a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/unit/next-swc.test.ts
Expand Up @@ -23,10 +23,10 @@ describe('next/swc', () => {
`)

expect(output).toMatchInlineSnapshot(`
"import { useState } from 'react';
var ref = useState(0), count = ref[0], setCount = ref[1];
"
`)
"import { useState } from \\"react\\";
var ref = useState(0), count = ref[0], setCount = ref[1];
"
`)
})

it('should be able to ignore some Array-destructured hook return values', async () => {
Expand All @@ -42,10 +42,10 @@ describe('next/swc', () => {
`)

expect(output).toMatchInlineSnapshot(`
"import { useState } from 'react';
var ref = useState(0), setCount = ref[1];
"
`)
"import { useState } from \\"react\\";
var ref = useState(0), setCount = ref[1];
"
`)
})
})
})

0 comments on commit 605ca5a

Please sign in to comment.