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 b57cdf2 commit 9ec5cd3Copy full SHA for 9ec5cd3
test/unit/specs/directives/public/for/for_spec.js
@@ -609,15 +609,15 @@ if (_.inBrowser) {
609
assertObjectMutations(vm, el, done)
610
})
611
612
- it('key val syntax with array', function () {
613
- new Vue({
+ it('key val syntax with array', function (done) {
+ var vm = new Vue({
614
el: el,
615
- template: '<div v-for="(ind,val) in items">{{ind}} {{val}}</div>',
+ template: '<div v-for="(i, item) in items">{{i}} {{item.a}}</div>',
616
data: {
617
- items: ['x', 'y']
+ items: [{a: 1}, {a: 2}]
618
}
619
620
- expect(el.innerHTML).toBe('<div>0 x</div><div>1 y</div>')
+ assertMutations(vm, el, done)
621
622
623
it('key val syntax with nested v-for s', function () {
0 commit comments