chore: improve typings in reactivity tests (#96)
This commit is contained in:
committed by
Evan You
parent
0fe8801782
commit
600ec5de42
@@ -102,7 +102,7 @@ describe('reactivity/collections', () => {
|
||||
|
||||
it('should observe entries iteration', () => {
|
||||
let dummy
|
||||
const set = reactive(new Set() as Set<number>)
|
||||
const set = reactive(new Set<number>())
|
||||
effect(() => {
|
||||
dummy = 0
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
@@ -196,7 +196,7 @@ describe('reactivity/collections', () => {
|
||||
|
||||
it('should not observe raw iterations', () => {
|
||||
let dummy = 0
|
||||
const set = reactive(new Set() as Set<number>)
|
||||
const set = reactive(new Set<number>())
|
||||
effect(() => {
|
||||
dummy = 0
|
||||
for (let [num] of toRaw(set).entries()) {
|
||||
|
||||
Reference in New Issue
Block a user