We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa04334 commit 2747a65Copy full SHA for 2747a65
test/unit/modules/observer/observer.spec.js
@@ -226,19 +226,7 @@ describe('Observer', () => {
226
})
227
228
observe(obj)
229
- // mock a watcher!
230
- const watcher = {
231
- deps: [],
232
- addDep: function (dep) {
233
- this.deps.push(dep)
234
- dep.addSub(this)
235
- },
236
- update: jasmine.createSpy()
237
- }
238
- // collect dep
239
- Dep.target = watcher
240
expect(obj.a).toBe(2) // Make sure 'this' is preserved
241
- Dep.target = null
242
obj.a = 3
243
expect(obj.val).toBe(3) // make sure 'setter' was called
244
obj.val = 5
0 commit comments