Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da7ac62

Browse filesBrowse files
committed
fix checkbox test
1 parent 1e15840 commit da7ac62
Copy full SHA for da7ac62

File tree

1 file changed

+5
-7
lines changed
Filter options

1 file changed

+5
-7
lines changed

‎test/unit/specs/directives/model_spec.js

Copy file name to clipboardExpand all lines: test/unit/specs/directives/model_spec.js
+5-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.