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

Function assertValue

packages/reactivity/__tests__/reactive.spec.ts:285–290  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

283
284 test('non-observable values', () => {
285 const assertValue = (value: any) => {
286 reactive(value)
287 expect(
288 `value cannot be made reactive: ${String(value)}`,
289 ).toHaveBeenWarnedLast()
290 }
291
292 // number
293 assertValue(1)

Callers 1

reactive.spec.tsFile · 0.85

Calls 3

reactiveFunction · 0.90
StringInterface · 0.85
toHaveBeenWarnedLastMethod · 0.80

Tested by

no test coverage detected