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

Function assertSome

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

Source from the content-addressed store, hash-verified

255 * @since 4.0.0
256 */
257export function assertSome<A>(
258 option: Option.Option<A>,
259 expected: A,
260 ..._: Array<never>
261): asserts option is Option.Some<A> {
262 deepStrictEqual(option, Option.some(expected))
263}
264
265// ----------------------------
266// Result

Callers

nothing calls this directly

Calls 2

someMethod · 0.80
deepStrictEqualFunction · 0.70

Tested by

no test coverage detected