test: remove unnecessary linter comment
Some would say it's the linter's job to determine what looks right. PR-URL: https://github.com/nodejs/node/pull/25013 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
parent
715e3c6226
commit
0fdd23fa3f
@ -188,9 +188,7 @@ fs.writeFileSync(path, '');
|
||||
|
||||
// Test Y2K38 for all platforms [except 'arm', 'OpenBSD' and 'SunOS']
|
||||
if (!process.arch.includes('arm') && !common.isOpenBSD && !common.isSunOS) {
|
||||
// because 2 ** 31 doesn't look right
|
||||
// eslint-disable-next-line space-infix-ops
|
||||
const Y2K38_mtime = 2**31;
|
||||
const Y2K38_mtime = 2 ** 31;
|
||||
fs.utimesSync(path, Y2K38_mtime, Y2K38_mtime);
|
||||
const Y2K38_stats = fs.statSync(path);
|
||||
assert.strictEqual(Y2K38_mtime, Y2K38_stats.mtime.getTime() / 1000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user