workspace: fix engine version check

This commit is contained in:
undefined committed 2023-01-10 05:26:41 +08:00
1 parent cca5cb895e
commit 50dc6f25b3
1 file changed
+2 -2
+2 -2
View File
@@ -1,6 +1,6 @@
process.env.CI = true; process.env.CI = true;
const version = process.versions.node.split('.'); const version = process.versions.node.split('.').map((i) => i.padStart(2, '0'));
version.pop(); 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('hydrooj/bin/hydrooj');
require('./main'); require('./main');