Skip to main content

@rbxts/expect > Assertion > containsExactly

Assertion.containsExactly() method

Asserts that the array contains all of the values in expectedValues, and nothing more or less.

Signature:

containsExactly(expectedValues: InferArrayElement<T>[]): this;

Parameters

Parameter

Type

Description

expectedValues

InferArrayElement<T>[]

Returns:

this

Remarks

Type alias for containExactly.