refactor(createComponent): rename to defineComponent (#549)

This commit is contained in:
Chris Fritz
2019-12-22 10:58:12 -05:00
committed by Evan You
parent 7d2ae08277
commit 1c4cdd841d
18 changed files with 74 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
import {
withDirectives,
createComponent,
defineComponent,
h,
nextTick,
VNode
@@ -19,7 +19,7 @@ beforeEach(() => {
describe('runtime-dom: v-show directive', () => {
test('should check show value is truthy', async () => {
const component = createComponent({
const component = defineComponent({
data() {
return { value: true }
},
@@ -35,7 +35,7 @@ describe('runtime-dom: v-show directive', () => {
})
test('should check show value is falsy', async () => {
const component = createComponent({
const component = defineComponent({
data() {
return { value: false }
},
@@ -51,7 +51,7 @@ describe('runtime-dom: v-show directive', () => {
})
it('should update show value changed', async () => {
const component = createComponent({
const component = defineComponent({
data() {
return { value: true }
},
@@ -100,7 +100,7 @@ describe('runtime-dom: v-show directive', () => {
})
test('should respect display value in style attribute', async () => {
const component = createComponent({
const component = defineComponent({
data() {
return { value: true }
},