Skip to content

assertMatch

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / assertMatch

assertMatch<T>(subject, test, message?): boolean

Defined in: packages/algo-ts/src/util.ts:100

Applies all tests in test against subject and asserts they all pass

T

The type of the subject

T

An object or tuple to be tested

MatchTest<T>

An object containing one or more tests to be applied to the subject

string

An optional message to show if the assertion fails

boolean