aboutsummaryrefslogtreecommitdiff
path: root/test/test-schema.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-17 22:30:16 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-17 22:30:16 -0500
commit7cbebf6897efb32c80c5e258f594d18861974bad (patch)
treea48e3ceed23af182bc25b07d1d01af0e5e23fb27 /test/test-schema.js
parent174d9e7429a0f7a45538e56a594ce627239d80c3 (diff)
Update how main is invoked
Diffstat (limited to 'test/test-schema.js')
-rw-r--r--test/test-schema.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-schema.js b/test/test-schema.js
index 2f294e43..762b8509 100644
--- a/test/test-schema.js
+++ b/test/test-schema.js
@@ -233,4 +233,4 @@ function main() {
}
-main();
+if (require.main === module) { main(); }