summaryrefslogtreecommitdiff
path: root/test/test-dom-text-scanner.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-dom-text-scanner.js')
-rw-r--r--test/test-dom-text-scanner.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-dom-text-scanner.js b/test/test-dom-text-scanner.js
index b9ff6239..ef59f33e 100644
--- a/test/test-dom-text-scanner.js
+++ b/test/test-dom-text-scanner.js
@@ -19,6 +19,7 @@ const fs = require('fs');
const path = require('path');
const assert = require('assert');
const {JSDOM} = require('jsdom');
+const {testMain} = require('../dev/util');
const {VM} = require('../dev/vm');
@@ -180,4 +181,4 @@ async function main() {
}
-if (require.main === module) { main(); }
+if (require.main === module) { testMain(main); }