Skip to content

Commit

Permalink
fix(test): use proper expectation type
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed Oct 11, 2024
1 parent ad3f995 commit 347a5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sequential.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test.each(['warmup', 'run'])('%s concurrent (task level)', async (mode) => {
} else {
await concurrentBench.run();
for (const result of concurrentBench.results) {
expect(result?.error).toMatch(/AssertionError/);
expect(result?.error).toMatchObject(/AssertionError/);
}
}
expect(concurrentBench.getTask(key)!.runs).toEqual(0);
Expand All @@ -107,7 +107,7 @@ test.each(['warmup', 'run'])('%s concurrent (task level)', async (mode) => {
} else {
await concurrentBench.runConcurrently();
for (const result of concurrentBench.results) {
expect(result?.error).toMatch(/AssertionError/);
expect(result?.error).toMatchObject(/AssertionError/);
}
}
expect(concurrentBench.getTask(key)!.runs).toEqual(0);
Expand Down

0 comments on commit 347a5ff

Please sign in to comment.