feat(core): keep-alive

This commit is contained in:
Evan You
2019-10-29 22:28:38 -04:00
parent 083296ead6
commit c6cbca25fe
11 changed files with 351 additions and 53 deletions

View File

@@ -111,7 +111,7 @@ describe('component: proxy', () => {
expect(`Attempting to mutate public property "$data"`).toHaveBeenWarned()
})
it('user', async () => {
it('sink', async () => {
const app = createApp()
let instance: ComponentInternalInstance
let instanceProxy: any
@@ -127,6 +127,6 @@ describe('component: proxy', () => {
app.mount(Comp, nodeOps.createElement('div'))
instanceProxy.foo = 1
expect(instanceProxy.foo).toBe(1)
expect(instance!.user.foo).toBe(1)
expect(instance!.sink.foo).toBe(1)
})
})