Browse Source

test directive binding.expression

dev
Evan You 9 years ago
parent
commit
9071dfd47a
  1. 2
      test/unit/features/options/directives.spec.js

2
test/unit/features/options/directives.spec.js

@ -26,6 +26,7 @@ describe('Options directives', () => {
bindSpy()
assertContext(el, binding, vnode)
expect(binding.value).toBe('foo')
expect(binding.expression).toBe('a')
expect(binding.oldValue).toBeUndefined()
},
update (el, binding, vnode, oldVnode) {
@ -36,6 +37,7 @@ describe('Options directives', () => {
expect(oldVnode).not.toBe(vnode)
expect(binding.value).toBe('bar')
expect(binding.oldValue).toBe('foo')
expect(binding.expression).toBe('a')
},
postupdate (el, binding, vnode) {
postupdateSpy()

Loading…
Cancel
Save