test(reactivity): fixed small copy & paste error (#140)
This commit is contained in:
parent
c6b7afcc23
commit
4605f43b95
@ -94,7 +94,7 @@ describe('reactivity/collections', () => {
|
||||
})
|
||||
|
||||
it('should observed nested data', () => {
|
||||
const observed = reactive(new Map())
|
||||
const observed = reactive(new WeakMap())
|
||||
const key = {}
|
||||
observed.set(key, { a: 1 })
|
||||
let dummy
|
||||
|
@ -3,11 +3,11 @@ import { reactive, isReactive, effect, toRaw } from '../../src'
|
||||
describe('reactivity/collections', () => {
|
||||
describe('WeakSet', () => {
|
||||
it('instanceof', () => {
|
||||
const original = new Set()
|
||||
const original = new WeakSet()
|
||||
const observed = reactive(original)
|
||||
expect(isReactive(observed)).toBe(true)
|
||||
expect(original instanceof Set).toBe(true)
|
||||
expect(observed instanceof Set).toBe(true)
|
||||
expect(original instanceof WeakSet).toBe(true)
|
||||
expect(observed instanceof WeakSet).toBe(true)
|
||||
})
|
||||
|
||||
it('should observe mutations', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user