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:
Girish Ramakrishnan
2025-08-14 11:17:38 +05:30
parent d3b77c3be1
commit 12e073e8cf
202 changed files with 395 additions and 395 deletions
+2 -2
View File
@@ -316,7 +316,7 @@ describe('Profile API', function () {
.query({ access_token: user.token })
.attach('avatar', './logo.png');
customAvatarSize = require('fs').readFileSync('./logo.png').length;
customAvatarSize = require('node:fs').readFileSync('./logo.png').length;
expect(response.status).to.be(204);
});
@@ -363,7 +363,7 @@ describe('Profile API', function () {
.query({ access_token: user.token })
.ok(() => true);
const customAvatarSize = require('fs').readFileSync('./logo.png').length;
const customAvatarSize = require('node:fs').readFileSync('./logo.png').length;
expect(parseInt(response2.headers['content-length'])).to.equal(customAvatarSize);
expect(response2.status).to.equal(200);
});