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

x/hex/src/lib/stdx/testing.ts>mock.restore

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

Restores all mocks registered in the current session that have not already been restored. If an id is provided, it will restore all mocks registered in the session associed with that id that have not already been restored.

Parameters

optional
id: number