Browse Source

fix style !important spec

dev
Evan You 8 years ago
parent
commit
3cfd84346f
  1. 4
      test/unit/features/directives/style.spec.js

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

@ -83,11 +83,11 @@ describe('Directive v-bind:style', () => {
}).then(done) }).then(done)
}) })
it('!important', () => { it('!important', done => {
vm.styles = { display: 'block !important' } vm.styles = { display: 'block !important' }
waitForUpdate(() => { waitForUpdate(() => {
expect(vm.$el.style.getPropertyPriority('display')).toBe('important') expect(vm.$el.style.getPropertyPriority('display')).toBe('important')
}) }).then(done)
}) })
it('object with multiple entries', done => { it('object with multiple entries', done => {

Loading…
Cancel
Save