feat: Initial devtools support (#1125)
This commit is contained in:
@@ -45,7 +45,7 @@ describe('component props', () => {
|
||||
render(h(Comp, { 'foo-bar': 3, bar: 3, baz: 4, barBaz: 5 }), root)
|
||||
expect(proxy.fooBar).toBe(3)
|
||||
expect(proxy.barBaz).toBe(5)
|
||||
expect(props).toEqual({ fooBar: 3,barBaz: 5 })
|
||||
expect(props).toEqual({ fooBar: 3, barBaz: 5 })
|
||||
expect(attrs).toEqual({ bar: 3, baz: 4 })
|
||||
|
||||
render(h(Comp, { qux: 5 }), root)
|
||||
|
||||
@@ -19,7 +19,7 @@ describe('renderSlot', () => {
|
||||
})
|
||||
|
||||
it('should warn render ssr slot', () => {
|
||||
renderSlot({ default: (a, b, c) => [h('child')] }, 'default')
|
||||
renderSlot({ default: (_a, _b, _c) => [h('child')] }, 'default')
|
||||
expect('SSR-optimized slot function detected').toHaveBeenWarned()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user