Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/mod.ts>testing.mock.returnsNext

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function testing.mock.returnsNext
import { testing } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { returnsNext } = testing.mock;

Creates a function that returns the iterable values. Any iterable values that are errors will be thrown.

Type Parameters

Return
optional
Self = any
optional
Args extends unknown[] = any[]

Parameters

values: Iterable<Return | Error>

Returns

(this: Self, ...args: Args) => Return