test: fix script setup directive test

This commit is contained in:
Evan You
2021-06-28 18:55:27 -04:00
parent 211793d376
commit fd7fa6f694
2 changed files with 4 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ defineExpose({ foo: 123 })
<script setup>
import ChildComp from './Child.vue'
import SomeOtherComp from './Other.vue'
import myDir from './my-dir'
import vMyDir from './my-dir'
</script>
<template>
<div v-my-dir></div>
@@ -281,7 +281,7 @@ defineExpose({ foo: 123 })
`,
{ inlineTemplate: true }
)
expect(content).toMatch('[_unref(myDir)]')
expect(content).toMatch('[_unref(vMyDir)]')
expect(content).toMatch('_createVNode(ChildComp)')
// kebab-case component support
expect(content).toMatch('_createVNode(SomeOtherComp)')