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

Function assertNone

packages/vitest/src/utils.ts:217–219  ·  view source on GitHub ↗
(option: Option.Option<A>, ..._: Array<never>)

Source from the content-addressed store, hash-verified

215 * @since 4.0.0
216 */
217export function assertNone<A>(option: Option.Option<A>, ..._: Array<never>): asserts option is Option.None<never> {
218 deepStrictEqual(option, Option.none())
219}
220
221/**
222 * Asserts that `a` is not `undefined`.

Callers

nothing calls this directly

Calls 1

deepStrictEqualFunction · 0.70

Tested by

no test coverage detected