feat(types): mixins/extends support in TypeScript (#626)
This commit is contained in:
@@ -412,13 +412,13 @@ describe('reactivity/collections', () => {
|
||||
`Reactive Set contains both the raw and reactive`
|
||||
).toHaveBeenWarned()
|
||||
})
|
||||
|
||||
|
||||
it('thisArg', () => {
|
||||
const raw = new Set([ 'value' ])
|
||||
const raw = new Set(['value'])
|
||||
const proxy = reactive(raw)
|
||||
const thisArg = {}
|
||||
let count = 0
|
||||
proxy.forEach(function (this :{}, value, _, set) {
|
||||
proxy.forEach(function(this: {}, value, _, set) {
|
||||
++count
|
||||
expect(this).toBe(thisArg)
|
||||
expect(value).toBe('value')
|
||||
|
||||
Reference in New Issue
Block a user