diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-07 11:34:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 11:34:14 -0500 |
commit | 7fa478295496d16bfc99dd80858544900c7b0a4c (patch) | |
tree | eaf94141835cdc7d27e58c6a0d1977c9361b1525 /test/test-database.js | |
parent | 0b003ef2c3c9029a2d92dfc23d760de895e0d7a4 (diff) |
Return an error code when promise main() functions fail (#1002)
Diffstat (limited to 'test/test-database.js')
-rw-r--r-- | test/test-database.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-database.js b/test/test-database.js index dce89559..cbaf49dd 100644 --- a/test/test-database.js +++ b/test/test-database.js @@ -19,7 +19,7 @@ const fs = require('fs'); const url = require('url'); const path = require('path'); const assert = require('assert'); -const {JSZip, createDictionaryArchive} = require('../dev/util'); +const {JSZip, createDictionaryArchive, testMain} = require('../dev/util'); const {VM} = require('../dev/vm'); require('fake-indexeddb/auto'); @@ -958,4 +958,4 @@ async function main() { } -if (require.main === module) { main(); } +if (require.main === module) { testMain(main); } |