Skip to content

Commit da7ac62

Browse files
committed
fix checkbox test
1 parent 1e15840 commit da7ac62

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/unit/specs/directives/model_spec.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,13 @@ if (_.inBrowser) {
158158
el.firstChild.click()
159159
expect(vm.test).toBe('aFalseValue')
160160
expect(el.firstChild.checked).toBe(false)
161-
vm.test = 'aTrueValue'
162161
_.nextTick(function () {
163-
// the updated value of 'test' is not being passed
164-
// into the 'update' method of v-model in this environment
165-
// works fine in manual test
166-
// expect(el.firstChild.checked).toBe(true)
167-
done()
162+
vm.test = 'aTrueValue'
163+
_.nextTick(function () {
164+
expect(el.firstChild.checked).toBe(true)
165+
done()
166+
})
168167
})
169-
170168
})
171169

172170
it('select', function (done) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy