MCPcopy Create free account
hub / github.com/denoland/std / restore

Method restore

testing/mock.ts:394–394  ·  view source on GitHub ↗

If spying on an instance method, this restores the original instance method.

()

Source from the content-addressed store, hash-verified

392 restored: boolean;
393 /** If spying on an instance method, this restores the original instance method. */
394 restore(): void;
395}
396
397/** An instance method wrapper that records all calls made to it. */

Callers 8

time_test.tsFile · 0.65
stubFunction · 0.65
restoreMethod · 0.65
restoreFunction · 0.65
methodSpyFunction · 0.65
stubFunction · 0.65
mock_test.tsFile · 0.65

Implementers 1

FakeTimetesting/time.ts

Calls

no outgoing calls

Tested by

no test coverage detected