Skip to content

Commit

Permalink
Assert that a and b have same length
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Dec 22, 2023
1 parent 85c77fa commit 815a4f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/test/utils/runUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export function expectDeepEquals<T>(a: T, b: T, message: string): void {
export function expectDeepEqualsUnordered<T>(a: T[], b: T[], message: string): void {
expect(a).toEqualWithMessage(expect.arrayContaining(b), message);
expect(b).toEqualWithMessage(expect.arrayContaining(a), message);
expect(a).toHaveLength(b.length);
}

0 comments on commit 815a4f1

Please sign in to comment.