diff --git a/test/entry.js b/test/entry.js index c0f08b19f..475282d4f 100644 --- a/test/entry.js +++ b/test/entry.js @@ -1,6 +1,6 @@ process.env.CI = true; -const version = process.versions.node.split('.'); +const version = process.versions.node.split('.').map((i) => i.padStart(2, '0')); version.pop(); -if (+version.join('.') < 18.8) throw new Error('Tests only available in NodeJS>=18.8'); +if (+version.join('.') < 18.08) throw new Error('Tests only available in NodeJS>=18.8'); require('hydrooj/bin/hydrooj'); require('./main');