import * as testSuite from "https://deno.land/x/test_suite@0.16.1/test_deps.ts";
Functions
Make an assertion, error will be thrown if | |
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 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. | |
f spy | Wraps a function or instance method with a Spy. |
f stub | Replaces an instance method with a Stub. |
Interfaces
I Spy | A function or instance method wrapper that records all calls made to it. |
Call information recorded by a spy. | |
I Stub | An instance method replacement that records all calls made to it. |