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

x/deno_slack_sdk/dev_deps.ts>mock.mockSessionAsync

SDK for building Run on Slack apps using Deno
Extremely Popular
Go to Latest
function mock.mockSessionAsync
import { mock } from "https://deno.land/x/deno_slack_sdk@1.6.1/dev_deps.ts";
const { mockSessionAsync } = mock;

Creates an async session that tracks all mocks created before the promise resolves.

Type Parameters

Self
Args extends unknown[]
Return

Parameters

func: (this: Self, ...args: Args) => Promise<Return>

Returns

(this: Self, ...args: Args) => Promise<Return>