Skip to content

Commit 26b6374

Browse files
committed
test for static style !important support
1 parent ac06016 commit 26b6374

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ describe('Directive v-bind:style', () => {
8383
}).then(done)
8484
})
8585

86+
it('!important', () => {
87+
vm.styles = { display: 'block !important' }
88+
waitForUpdate(() => {
89+
expect(vm.$el.style.getPropertyPriority('display')).toBe('important')
90+
})
91+
})
92+
8693
it('object with multiple entries', done => {
8794
vm.$el.style.color = 'red'
8895
vm.styles = {

0 commit comments

Comments
 (0)