summaryrefslogtreecommitdiff
path: root/cli/js/workers_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/workers_test.ts')
-rw-r--r--cli/js/workers_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/workers_test.ts b/cli/js/workers_test.ts
index eccf83f65..7dbd316ec 100644
--- a/cli/js/workers_test.ts
+++ b/cli/js/workers_test.ts
@@ -76,7 +76,7 @@ test(async function workerThrowsWhenExecuting(): Promise<void> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
throwingWorker.onerror = (e: any): void => {
e.preventDefault();
- assertEquals(e.message, "Uncaught Error: Thrown error");
+ assert(/Uncaught Error: Thrown error/.test(e.message));
promise.resolve();
};