Skip to content

Commit

Permalink
test: remove unused code (vuejs#9684)
Browse files Browse the repository at this point in the history
  • Loading branch information
decadef20 authored and Lostlover committed Dec 10, 2019
1 parent ef4ccba commit 6b87c1b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/unit/modules/observer/observer.spec.js
Expand Up @@ -226,19 +226,7 @@ describe('Observer', () => {
})

observe(obj)
// mock a watcher!
const watcher = {
deps: [],
addDep: function (dep) {
this.deps.push(dep)
dep.addSub(this)
},
update: jasmine.createSpy()
}
// collect dep
Dep.target = watcher
expect(obj.a).toBe(2) // Make sure 'this' is preserved
Dep.target = null
obj.a = 3
expect(obj.val).toBe(3) // make sure 'setter' was called
obj.val = 5
Expand Down

0 comments on commit 6b87c1b

Please sign in to comment.