diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-17 22:30:16 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-17 22:30:16 -0500 |
commit | 7cbebf6897efb32c80c5e258f594d18861974bad (patch) | |
tree | a48e3ceed23af182bc25b07d1d01af0e5e23fb27 /test | |
parent | 174d9e7429a0f7a45538e56a594ce627239d80c3 (diff) |
Update how main is invoked
Diffstat (limited to 'test')
-rw-r--r-- | test/dictionary-validate.js | 2 | ||||
-rw-r--r-- | test/schema-validate.js | 2 | ||||
-rw-r--r-- | test/test-schema.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/dictionary-validate.js b/test/dictionary-validate.js index 971c4971..dca3bcf5 100644 --- a/test/dictionary-validate.js +++ b/test/dictionary-validate.js @@ -87,4 +87,4 @@ async function main() { } -main(); +if (require.main === module) { main(); } 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(); } 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(); } |