MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertUndefined

Function assertUndefined

packages/vitest/src/utils.ts:242–249  ·  view source on GitHub ↗
(
  a: A | undefined,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

240 * @since 4.0.0
241 */
242export function assertUndefined<A>(
243 a: A | undefined,
244 ..._: Array<never>
245): asserts a is undefined {
246 if (a !== undefined) {
247 fail("Expected value to be undefined")
248 }
249}
250
251/**
252 * Asserts that `option` is `Some` and contains a value equal to `expected`.

Callers

nothing calls this directly

Calls 1

failFunction · 0.70

Tested by

no test coverage detected