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

std/testing/mock.ts>restore

Deno standard library
Go to Latest
function restore
import { restore } from "https://deno.land/std@0.138.0/testing/mock.ts";

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