Skip to main content

function default.assert.register

#register(
name: string,
fn: (
...args: any[],
) => void
,
): void

Defines a new assertion function with the provided name and function. If an assertion already exists with the same name, it is overwritten.

Parameters #

#name: string
#fn: (
...args: any[],
) => void

Return Type #

void

Did you find what you needed?

Privacy policy