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

@@ -8,13 +8,13 @@ import {
nextTick,
renderToString,
ref,
createComponent,
defineComponent,
mockWarn
} from '@vue/runtime-test'
describe('api: options', () => {
test('data', async () => {
const Comp = createComponent({
const Comp = defineComponent({
data() {
return {
foo: 1
@@ -42,7 +42,7 @@ describe('api: options', () => {
})
test('computed', async () => {
const Comp = createComponent({
const Comp = defineComponent({
data() {
return {
foo: 1
@@ -78,7 +78,7 @@ describe('api: options', () => {
})
test('methods', async () => {
const Comp = createComponent({
const Comp = defineComponent({
data() {
return {
foo: 1
@@ -536,7 +536,7 @@ describe('api: options', () => {
})
test('accessing setup() state from options', async () => {
const Comp = createComponent({
const Comp = defineComponent({
setup() {
return {
count: ref(0)