(binding: DirectiveBinding)
| 20 | const count = ref(0) |
| 21 | |
| 22 | function assertBindings(binding: DirectiveBinding) { |
| 23 | expect(binding.value).toBe(count.value) |
| 24 | expect(binding.arg).toBe('foo') |
| 25 | expect(binding.instance).toBe(_instance && _instance.proxy) |
| 26 | expect(binding.modifiers && binding.modifiers.ok).toBe(true) |
| 27 | } |
| 28 | |
| 29 | const beforeMount = vi.fn(((el, binding, vnode, prevVNode) => { |
| 30 | expect(el.tag).toBe('div') |