Skip to content

Commit c49b350

Browse files
committed
fixed lint issues
1 parent a7f49d3 commit c49b350

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

test/parallel/test-stream-finished-async-local-storage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const readable = new Readable();
1515

1616
als.run('test-context-1', () => {
1717
finished(readable, common.mustCall(() => {
18-
strictEqual(AsyncContextFrame.enabled || internalAsyncHooks.getHookArrays()[0].length > 0, true, 'test-context-1', 'One of AsyncContextFrame or async hooks criteria should be met');
18+
strictEqual(AsyncContextFrame.enabled || internalAsyncHooks.getHookArrays()[0].length > 0,
19+
true, 'One of AsyncContextFrame or async hooks criteria should be met');
1920
strictEqual(als.getStore(), 'test-context-1', 'ALS context should be preserved');
2021
}));
2122
});

test/parallel/test-stream-finished-bindAsyncResource-path.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ createHook({}).enable();
1414
const readable = new Readable();
1515

1616
finished(readable, common.mustCall(() => {
17-
strictEqual(internalAsyncHooks.getHookArrays()[0].length > 0, true, 'Should have active user async hook');
17+
strictEqual(internalAsyncHooks.getHookArrays()[0].length > 0,
18+
true, 'Should have active user async hook');
1819
}));
1920

2021
readable.destroy();

test/parallel/test-stream-finished-default-path.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ const internalAsyncHooks = require('internal/async_hooks');
1212
const readable = new Readable();
1313

1414
finished(readable, common.mustCall(() => {
15-
strictEqual(internalAsyncHooks.getHookArrays()[0].length === 0, true, 'Should not have active user async hook');
16-
strictEqual(AsyncContextFrame.current() || internalAsyncHooks.getHookArrays()[0].length > 0, false, 'Default callback path should be used');
15+
strictEqual(internalAsyncHooks.getHookArrays()[0].length === 0,
16+
true, 'Should not have active user async hook');
17+
strictEqual(AsyncContextFrame.current() || internalAsyncHooks.getHookArrays()[0].length > 0,
18+
false, 'Default callback path should be used');
1719
}));
1820

1921
readable.destroy();

0 commit comments

Comments
 (0)