Skip to content

Commit 2d5861b

Browse files
committed
test: fix tests
1 parent 2f32ed7 commit 2d5861b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/compiler/__tests__/testUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export function createElementWithCodegen(
6363
directives: undefined,
6464
isBlock: false,
6565
disableTracking: false,
66+
isComponent: false,
6667
loc: locStub,
6768
},
6869
}

packages/runtime/__tests__/modules/class.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { registerTestLayout } from '@nativescript-vue/test-utils'
22

33
// https://github.com/vuejs/vue/blob/dev/test/unit/features/directives/class.spec.js
44

5-
import { h, render, defineComponent } from '../../src'
5+
import { h, render, defineComponent, DefineComponent } from '../../src'
66
import { NSVElement } from '../../src/nodes'
77

88
type ClassItem = {
@@ -108,21 +108,21 @@ describe('class', () => {
108108
})
109109

110110
test('class merge between multiple nested components sharing same element', () => {
111-
const component1 = defineComponent({
111+
const component1: DefineComponent = defineComponent({
112112
props: {},
113113
render() {
114114
return this.$slots.default!()[0]
115115
},
116116
})
117117

118-
const component2 = defineComponent({
118+
const component2: DefineComponent = defineComponent({
119119
props: {},
120120
render() {
121121
return this.$slots.default!()[0]
122122
},
123123
})
124124

125-
const component3 = defineComponent({
125+
const component3: DefineComponent = defineComponent({
126126
props: {},
127127
render() {
128128
return h(

0 commit comments

Comments
 (0)