|
|
@@ -158,15 +158,13 @@ if (_.inBrowser) {
|
|
|
el.firstChild.click()
|
|
|
expect(vm.test).toBe('aFalseValue')
|
|
|
expect(el.firstChild.checked).toBe(false)
|
|
|
- vm.test = 'aTrueValue'
|
|
|
_.nextTick(function () {
|
|
|
- // the updated value of 'test' is not being passed
|
|
|
- // into the 'update' method of v-model in this environment
|
|
|
- // works fine in manual test
|
|
|
- // expect(el.firstChild.checked).toBe(true)
|
|
|
- done()
|
|
|
+ vm.test = 'aTrueValue'
|
|
|
+ _.nextTick(function () {
|
|
|
+ expect(el.firstChild.checked).toBe(true)
|
|
|
+ done()
|
|
|
+ })
|
|
|
})
|
|
|
-
|
|
|
})
|
|
|
|
|
|
it('select', function (done) {
|