MCPcopy
hub / github.com/vuejs/composition-api / assertValue

Function assertValue

test/v3/reactivity/reactive.spec.ts:160–164  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

158
159 test('non-observable values', () => {
160 const assertValue = (value: any) => {
161 expect(isReactive(reactive(value))).toBe(false)
162 expect(reactive(value)).toBe(value)
163 // expect(warnSpy).toHaveBeenLastCalledWith(`value cannot be made reactive: ${String(value)}`);
164 }
165
166 // number
167 assertValue(1)

Callers 1

reactive.spec.tsFile · 0.85

Calls 3

isReactiveFunction · 0.90
reactiveFunction · 0.90
shallowReactiveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…