import * as oauth2Server from "https://deno.land/x/oauth2_server@0.12.0/test_deps.ts";
Classes
Overrides the real Date object and timer functions with fake ones that can be controlled through the fake time instance. |
Functions
Make an assertion, error will be thrown if | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Make an assertion that | |
Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it. | |
Asserts that a spy is called as expected. | |
Asserts that an async spy is called as expected. | |
Asserts that a spy is called as much as expected and no more. | |
Make an assertion that | |
Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it. | |
Registers a test suite. | |
f it | Registers an individual test case. |
f spy | Wraps a function or instance method with a Spy. |
f stub | Replaces an instance method with a Stub. |
Validate that the passed UUID is an RFC4122 v4 UUID. |
Interfaces
Registers a test suite. | |
I it | Registers an individual test case. |
I Spy | A function or instance method wrapper that records all calls made to it. |
I Stub | An instance method replacement that records all calls made to it. |