diff --git a/test/unit/features/directives/style.spec.js b/test/unit/features/directives/style.spec.js index a902081e9f5..3ce6ab29388 100644 --- a/test/unit/features/directives/style.spec.js +++ b/test/unit/features/directives/style.spec.js @@ -277,4 +277,22 @@ describe('Directive v-bind:style', () => { expect(style.marginLeft).toBe('40px') }).then(done) }) + + it('should not merge for different adjacent elements', (done) => { + const vm = new Vue({ + template: '
' + + '
' + + '
' + + '
' + + '
', + data: { + bool: false + } + }).$mount() + waitForUpdate(() => { + vm.bool = true + }).then(() => { + expect(vm.$el.children[1].style.color).not.toBe('blue') + }).then(done) + }) })