Skip to content

Commit 6b87c1b

Browse files
decadef20Lostlover
authored andcommitted
test: remove unused code (vuejs#9684)
1 parent ef4ccba commit 6b87c1b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/unit/modules/observer/observer.spec.js

-12
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,7 @@ describe('Observer', () => {
226226
})
227227

228228
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
240229
expect(obj.a).toBe(2) // Make sure 'this' is preserved
241-
Dep.target = null
242230
obj.a = 3
243231
expect(obj.val).toBe(3) // make sure 'setter' was called
244232
obj.val = 5

0 commit comments

Comments
 (0)