Skip to content

Commit 438b517

Browse files
committed
fix style merging assertion in IE
1 parent 8c0fac6 commit 438b517

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/unit/features/directives/style.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ describe('Directive v-bind:style', () => {
195195
}).$mount()
196196
const style = vm.$el.style
197197
const child = vm.$children[0]
198-
expect(style.cssText.replace(/\s/g, '')).toBe('margin-right:20px;margin-left:16px;text-align:left;color:red;font-size:12px;')
198+
const css = style.cssText.replace(/\s/g, '')
199+
expect(css).toContain('margin-right:20px;')
200+
expect(css).toContain('margin-left:16px;')
201+
expect(css).toContain('text-align:left;')
202+
expect(css).toContain('color:red;')
203+
expect(css).toContain('font-size:12px;')
199204
expect(style.color).toBe('red')
200205
expect(style.marginRight).toBe('20px')
201206
vm.test.color = 'blue'

0 commit comments

Comments
 (0)