8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 052cf17 commit a8a7ca2Copy full SHA for a8a7ca2
test/unit/specs/directives/for/for_spec.js
@@ -595,15 +595,18 @@ if (_.inBrowser) {
595
expect(hasWarned(_, 'Duplicate value')).toBe(true)
596
})
597
598
- it('key val syntax with object', function () {
599
- new Vue({
+ it('key val syntax with object', function (done) {
+ var vm = new Vue({
600
el: el,
601
- template: '<div v-for="(key,val) in items">{{key}} {{val}}</div>',
+ template: '<div v-for="(key,val) in items">{{$index}} {{key}} {{val.a}}</div>',
602
data: {
603
- items: {'a': 'x'}
+ items: {
604
+ a: {a: 1},
605
+ b: {a: 2}
606
+ }
607
}
608
- expect(el.innerHTML).toBe('<div>a x</div>')
609
+ assertObjectMutations(vm, el, done)
610
611
612
it('key val syntax with array', function () {
0 commit comments