fix(reactivity): ensure add/set on reactive collections return the proxy (#2534)
fix #2530
This commit is contained in:
@@ -467,5 +467,11 @@ describe('reactivity/collections', () => {
|
||||
proxy.clear()
|
||||
expect(spy).toBeCalledTimes(1)
|
||||
})
|
||||
|
||||
it('should return proxy from Map.set call', () => {
|
||||
const map = reactive(new Map())
|
||||
const result = map.set('a', 'a')
|
||||
expect(result).toBe(map)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user