Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: modernize JS in some test-fs-*.js #23031

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
test: remove whitespace
  • Loading branch information
jy95 committed Sep 23, 2018
commit be965018b411095b5c5b357c1c721a610d4cded1
2 changes: 0 additions & 2 deletions test/parallel/test-fs-access.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ const { internalBinding } = require('internal/test/binding');
const { UV_ENOENT } = internalBinding('uv');

const tmpdir = require('../common/tmpdir');

const doesNotExist = path.join(tmpdir.path, '__this_should_not_exist');
const readOnlyFile = path.join(tmpdir.path, 'read_only_file');
const readWriteFile = path.join(tmpdir.path, 'read_write_file');


function createFileWithPerms(file, mode) {
fs.writeFileSync(file, '');
fs.chmodSync(file, mode);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-fs-open-mode-mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const assert = require('assert');
const path = require('path');
const fs = require('fs');

const mode = (common.isWindows) ? 0o444 : 0o644;
const mode = common.isWindows ? 0o444 : 0o644;


const maskToIgnore = 0o10000;
Expand Down