|
|
@@ -549,7 +549,7 @@ describe('compiler: expression transform', () => {
|
|
|
|
|
|
test('literal const handling, non-inline mode', () => {
|
|
|
const { code } = compileWithBindingMetadata(`<div>{{ literal }}</div>`)
|
|
|
- expect(code).toMatch(`toDisplayString(literal)`)
|
|
|
+ expect(code).toMatch(`toDisplayString($setup.literal)`)
|
|
|
// #7973 should skip patch for literal const
|
|
|
expect(code).not.toMatch(
|
|
|
`${PatchFlags.TEXT} /* ${PatchFlagNames[PatchFlags.TEXT]} */`
|