Skip to content

Commit

Permalink
remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Mar 2, 2025
1 parent dc8258e commit e56faf7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/es-module/test-esm-tla-unfinished.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,7 @@ describe('ESM: unsettled and rejected promises', { concurrency: !process.env.TES
assert.strictEqual(code, 1);
});

it('should exit for an unsettled TLA promise and respect explicit exit code via stdin', async () => {
const { code, stderr, stdout } = await spawnPromisified(execPath, [
'--no-warnings',
fixtures.path('es-modules/tla/unresolved-withexitcode.mjs'),
]);

assert.strictEqual(stdout, 'the exit listener received code: 42\n');
assert.strictEqual(stderr, '');
assert.strictEqual(code, 42);
});

it('should exit for an unsettled TLA promise and respect explicit exit code in process exit event', async () => {
it('should exit for an unsettled TLA promise and respect explicit exit code', async () => {
const { code, stderr, stdout } = await spawnPromisified(execPath, [
'--no-warnings',
fixtures.path('es-modules/tla/unresolved-withexitcode.mjs'),
Expand Down

0 comments on commit e56faf7

Please sign in to comment.