Skip to content

Commit 35259c5

Browse files
38elementseddyerburgh
authored andcommitted
test: fix flow errors (#286)
1 parent 060e2e2 commit 35259c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wrappers/wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ export default class Wrapper implements BaseWrapper {
413413
}
414414
// $FlowIgnore : Problem with possibly null this.vm
415415
this.vm._computedWatchers[key].value = computed[key]
416+
// $FlowIgnore : Problem with possibly null this.vm
416417
this.vm._computedWatchers[key].getter = () => computed[key]
417-
418418
} else {
419419
// $FlowIgnore : Problem with possibly null this.vm
420420
if (!this.vm._watchers.some(w => w.getter.name === key)) {

test/unit/specs/mount/Wrapper/setComputed.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('setComputed', () => {
5050
}
5151

5252
const wrapper = mount(TestComponent)
53-
wrapper.setComputed({b: 3})
53+
wrapper.setComputed({ b: 3 })
5454
expect(wrapper.vm.b).to.equal(3)
5555
})
5656

0 commit comments

Comments
 (0)