Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_slack_api/dev_deps.ts

Slack API Client for Deno Run on Slack projects
Latest
import * as denoSlackApi from "https://deno.land/x/deno_slack_api@2.8.0/dev_deps.ts";

Variables

Replace globalThis.fetch with mockedFetch (or another function that matches the fetch signature)

Mock a new route, or override an existing handler.

This is the function that replaces fetch when you call install().

Remove an existing route handler.

Remove all existing route handlers.

Restore globalThis.fetch to what it was before this library was imported.

Functions

Run some shared teardown after each test in the suite.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual is not null or undefined. If not then throw.

Make an assertion that obj is an instance of type. If not then throw.

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. Returns the call.

Asserts that a spy is called as much as expected and no more.

Run some shared setup before all of the tests in the suite.

A type guard that determines if the value is an HttpError or not.

Get a set of functions that do not share any state with the globals.

f
spy
deprecated

Wraps a function or instance method with a Spy.

Replaces an instance method with a Stub.

Type Aliases

A handler type for a router path match which gets passed the matched values