MCPcopy
hub / github.com/vuejs/core / assertBindings

Function assertBindings

packages/runtime-core/__tests__/directives.spec.ts:22–27  ·  view source on GitHub ↗
(binding: DirectiveBinding)

Source from the content-addressed store, hash-verified

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')

Callers 1

directives.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected