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 8c0fac6 commit 438b517Copy full SHA for 438b517
test/unit/features/directives/style.spec.js
@@ -195,7 +195,12 @@ describe('Directive v-bind:style', () => {
195
}).$mount()
196
const style = vm.$el.style
197
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;')
+ 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;')
204
expect(style.color).toBe('red')
205
expect(style.marginRight).toBe('20px')
206
vm.test.color = 'blue'
0 commit comments