MCPcopy Create free account
hub / github.com/Botloader/botloader / assertExpected

Function assertExpected

integration-tests/lib.ts:37–41  ·  view source on GitHub ↗
(expected: any, actual: any)

Source from the content-addressed store, hash-verified

35}
36
37export function assertExpected(expected: any, actual: any) {
38 if (expected !== actual) {
39 throw new Error(`expected: ${expected}, actual: ${actual}`);
40 }
41}
42
43export async function assertExpectError(f: () => any) {
44 let gotError = false

Callers 15

attachment.tsFile · 0.90
checkCreatedRoleFunction · 0.90
checkEditedRoleFunction · 0.90
testMessageThreadFunction · 0.90
testForumThreadFunction · 0.90
permissions2.tsFile · 0.90
emoji.tsFile · 0.90
pins.tsFile · 0.90
components.tsFile · 0.90
invites.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected