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

x/deno_slack_sdk/dev_deps.ts>mock.assertSpyCallArgs

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

Asserts that an spy is called with a specific range of args as expected. If a start and end index is not provided, the expected will be compared against all args. If a start is provided without an end index, the expected will be compared against all args from the start index to the end. The end index is not included in the range of args that are compared.

Type Parameters

Self
Args extends unknown[]
Return
ExpectedArgs extends unknown[]

Parameters

callIndex: number
expected: ExpectedArgs

Type Parameters

Self
Args extends unknown[]
Return
ExpectedArgs extends unknown[]

Parameters

callIndex: number
argsStart: number
expected: ExpectedArgs

Type Parameters

Self
Args extends unknown[]
Return
ExpectedArgs extends unknown[]

Parameters

callIndex: number
argStart: number
argEnd: number
expected: ExpectedArgs