summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/mod.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/mod.ts b/testing/mod.ts
index 3b895a2e9..0a6e52805 100644
--- a/testing/mod.ts
+++ b/testing/mod.ts
@@ -293,7 +293,7 @@ export async function runTests() {
}
export async function runIfMain(meta: ImportMeta) {
- if (window.location.toString() === meta.url) {
+ if (meta.main) {
runTests();
}
}