From 8b98c186f4bf4ac635138ee536ac19fdaaa1ec89 Mon Sep 17 00:00:00 2001 From: Raz Luvaton <16746759+rluvaton@users.noreply.github.com> Date: Mon, 14 Aug 2023 23:14:56 +0300 Subject: [PATCH] test: reorder test files fixtures for better understanding --- test/parallel/test-runner-run.mjs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-runner-run.mjs b/test/parallel/test-runner-run.mjs index 1ac33df7604941..aebc1b74fead9b 100644 --- a/test/parallel/test-runner-run.mjs +++ b/test/parallel/test-runner-run.mjs @@ -149,9 +149,13 @@ describe('require(\'node:test\').run', { concurrency: true }, () => { }); describe('AbortSignal', () => { - it('should stop watch mode when abortSignal aborts', async () => { - const controller = new AbortController(); - const result = await run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')], watch: true, signal: controller.signal }) + it('should stop watch mode when abortSignal aborts', async () => { + const controller = new AbortController(); + const result = await run({ + files: [join(testFixtures, 'default-behavior/test/random.cjs')], + watch: true, + signal: controller.signal + }) .compose(async function* (source) { for await (const chunk of source) { if (chunk.type === 'test:pass') { @@ -161,8 +165,8 @@ describe('require(\'node:test\').run', { concurrency: true }, () => { } }) .toArray(); - assert.deepStrictEqual(result, ['this should pass']); - }); + assert.deepStrictEqual(result, ['this should pass']); + }); it('should abort when test succeeded', async () => { const stream = run({