use node: prefix for requires
mostly because code is being autogenerated by all the AI stuff using this prefix. it's also used in the stack trace.
This commit is contained in:
@@ -22,7 +22,7 @@ describe('System', function () {
|
||||
|
||||
it('can get filesystems', async function () {
|
||||
// does not work on archlinux 8!
|
||||
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
if (require('node:child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
|
||||
const filesystems = await system.getFilesystems();
|
||||
expect(filesystems).to.be.ok();
|
||||
@@ -31,7 +31,7 @@ describe('System', function () {
|
||||
|
||||
it('can get swaps', async function () {
|
||||
// does not work on archlinux 8!
|
||||
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
if (require('node:child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
|
||||
const swaps = await system.getSwaps();
|
||||
expect(swaps).to.be.ok();
|
||||
@@ -40,7 +40,7 @@ describe('System', function () {
|
||||
|
||||
it('can check for disk space', async function () {
|
||||
// does not work on archlinux 8!
|
||||
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
if (require('node:child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
|
||||
await system.checkDiskSpace();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user