diff options
Diffstat (limited to 'build/tasks/promises_aplus_tests.js')
-rw-r--r-- | build/tasks/promises_aplus_tests.js | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/build/tasks/promises_aplus_tests.js b/build/tasks/promises_aplus_tests.js index 5c3c8fbee..6f49f0230 100644 --- a/build/tasks/promises_aplus_tests.js +++ b/build/tasks/promises_aplus_tests.js @@ -1,17 +1,9 @@ -"use strict"; - -const { spawn } = require( "node:child_process" ); -const verifyNodeVersion = require( "./lib/verifyNodeVersion" ); -const path = require( "node:path" ); -const os = require( "node:os" ); - -if ( !verifyNodeVersion() ) { - return; -} +import path from "node:path"; +import os from "node:os"; +import { spawn } from "node:child_process"; const command = path.resolve( - __dirname, - `../../node_modules/.bin/promises-aplus-tests${ os.platform() === "win32" ? ".cmd" : "" }` + `node_modules/.bin/promises-aplus-tests${ os.platform() === "win32" ? ".cmd" : "" }` ); const args = [ "--reporter", "dot", "--timeout", "2000" ]; const tests = [ |