aboutsummaryrefslogtreecommitdiff
path: root/test/schema-validate.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/schema-validate.js
parent174d9e7429a0f7a45538e56a594ce627239d80c3 (diff)
Update how main is invoked
Diffstat (limited to 'test/schema-validate.js')
-rw-r--r--test/schema-validate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/schema-validate.js b/test/schema-validate.js
index ac5a8a85..309adf83 100644
--- a/test/schema-validate.js
+++ b/test/schema-validate.js
@@ -33,4 +33,4 @@ function main() {
}
-main();
+if (require.main === module) { main(); }