Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-ru committed Dec 18, 2023
1 parent 4441673 commit 7bfb63f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fervid_napi/__tests__/compileHelloWorld.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const compilerName = ref('fervid')
`

test('should work', () => {
expect(compileSync(HELLO_WORLD)).toMatchInlineSnapshot(`
expect(compileSync(HELLO_WORLD).code).toMatchInlineSnapshot(`
"import { ref } from 'vue';
import { createElementBlock as _createElementBlock, openBlock as _openBlock, toDisplayString as _toDisplayString } from "vue";
export default {
Expand All @@ -36,7 +36,7 @@ test('should work', () => {
"
`)

expect(compileSync(HELLO_WORLD, { isProd: true })).toMatchInlineSnapshot(`
expect(compileSync(HELLO_WORLD, { isProd: true }).code).toMatchInlineSnapshot(`
"import { ref } from 'vue';
import { createElementBlock as _createElementBlock, openBlock as _openBlock, toDisplayString as _toDisplayString } from "vue";
export default {
Expand Down

0 comments on commit 7bfb63f

Please sign in to comment.