summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-02-27 16:29:02 -0800
committerBert Belder <bertbelder@gmail.com>2020-02-27 16:30:18 -0800
commit1cb1ab6c004ec0b20edaf65c6fdd3bc0b7ce465e (patch)
tree84660e1eeb8735f1219e1074e1c260e7e6990750 /cli/js
parent397deb4e29775b7395a7ed4ccd253b89ee211b66 (diff)
Merge mod_evaluate() and mod_evaluate_dyn_import() methods (#4167)
Diffstat (limited to 'cli/js')
-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();
};