Skip to content

Commit 59a4002

Browse files
committed
Test
1 parent 9fbcc04 commit 59a4002

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

test/return/result.js

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import {setFixtureDirectory} from '../helpers/fixtures-directory.js';
44

55
setFixtureDirectory();
66

7-
const testThis = async (t, signal) => {
7+
test('test this', async t => {
88
t.pass();
99
const subprocess = spawn('node', ['noop.js']);
1010
try {
11-
t.true(subprocess.kill(signal));
11+
t.true(subprocess.kill(0));
1212
} catch (error) {
1313
console.log('uncaught', {error});
1414
subprocess.kill();
@@ -28,20 +28,4 @@ const testThis = async (t, signal) => {
2828
resolve();
2929
});
3030
});
31-
};
32-
33-
test.serial('0', testThis, 0);
34-
test.serial('SIGUNKNOWN', testThis, 'SIGUNKNOWN');
35-
test.serial('SIGPOLL', testThis, 'SIGPOLL');
36-
test.serial('SIGINFO', testThis, 'SIGINFO');
37-
test.serial('SIGHUP', testThis, 'SIGHUP');
38-
test.serial('SIGINT', testThis, 'SIGINT');
39-
test.serial('SIGQUIT', testThis, 'SIGQUIT');
40-
test.serial('SIGILL', testThis, 'SIGILL');
41-
test.serial('SIGABRT', testThis, 'SIGABRT');
42-
test.serial('SIGFPE', testThis, 'SIGFPE');
43-
test.serial('SIGKILL', testThis, 'SIGKILL');
44-
test.serial('SIGSEGV', testThis, 'SIGSEGV');
45-
test.serial('SIGTERM', testThis, 'SIGTERM');
46-
test.serial('SIGWINCH', testThis, 'SIGWINCH');
47-
test.serial('SIGBREAK', testThis, 'SIGBREAK');
31+
});

0 commit comments

Comments
 (0)