Skip to content

Commit 13a64e6

Browse files
committed
test: fix linting issues in fastutf8stream tests
- Add mandatory require('../common') as first import in both test files - Fix trailing spaces issues - All JavaScript linting now passes
1 parent 3908136 commit 13a64e6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

test/parallel/test-fastutf8stream-flush-mocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
require('../common');
34
const { test } = require('node:test');
45
const tmpdir = require('../common/tmpdir');
56
const {

test/parallel/test-fastutf8stream-sync.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
require('../common');
34
const { test } = require('node:test');
45
const tmpdir = require('../common/tmpdir');
56
const {
@@ -177,7 +178,7 @@ test('Utf8Stream sync large data write', async (t) => {
177178
else resolve(stat);
178179
});
179180
});
180-
181+
181182
strictEqual(stat_result.size, length);
182183

183184
});
@@ -206,7 +207,7 @@ test('Utf8Stream sync with emoji', async (t) => {
206207
else resolve(stat);
207208
});
208209
});
209-
210+
210211
strictEqual(stat_result.size, length);
211212
const char = Buffer.alloc(4);
212213
const readFd = openSync(dest, 'r');
@@ -270,7 +271,7 @@ test('Utf8Stream sync with multiple unicode writes', async (t) => {
270271
}
271272

272273
ok(true, 'writes completed successfully');
273-
274+
274275
await new Promise((resolve) => {
275276
readFile(dest, 'utf8', (err, data) => {
276277
t.assert.ifError(err);

0 commit comments

Comments
 (0)