Skip to content

Commit 347a5ff

Browse files
committed
fix(test): use proper expectation type
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
1 parent ad3f995 commit 347a5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test.each(['warmup', 'run'])('%s concurrent (task level)', async (mode) => {
9494
} else {
9595
await concurrentBench.run();
9696
for (const result of concurrentBench.results) {
97-
expect(result?.error).toMatch(/AssertionError/);
97+
expect(result?.error).toMatchObject(/AssertionError/);
9898
}
9999
}
100100
expect(concurrentBench.getTask(key)!.runs).toEqual(0);
@@ -107,7 +107,7 @@ test.each(['warmup', 'run'])('%s concurrent (task level)', async (mode) => {
107107
} else {
108108
await concurrentBench.runConcurrently();
109109
for (const result of concurrentBench.results) {
110-
expect(result?.error).toMatch(/AssertionError/);
110+
expect(result?.error).toMatchObject(/AssertionError/);
111111
}
112112
}
113113
expect(concurrentBench.getTask(key)!.runs).toEqual(0);

0 commit comments

Comments
 (0)