test: fix typos

PR-URL: https://github.com/nodejs/node/pull/59330
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
This commit is contained in:
Lee Jiho 2025-08-13 19:25:19 +09:00 committed by GitHub
parent f7a2ba7e83
commit becb55aac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ test('Can create a transferable abort controller', async () => {
mc.port2.postMessage(ac.signal, [ac.signal]);
// Can be cloned/transferd multiple times and they all still work
// Can be cloned/transferred multiple times and they all still work
mc.port2.postMessage(ac.signal, [ac.signal]);
// Although we're using transfer semantics, the local AbortSignal

View file

@ -104,17 +104,17 @@ const limit = 10_000;
describe('when there is a long-lived signal', () => {
it('drops settled dependant signals', (t, done) => {
makeSubsequentCalls(limit, (signal, depandantSignalsKey) => {
makeSubsequentCalls(limit, (signal, dependantSignalsKey) => {
setImmediate(() => {
t.assert.strictEqual(signal[depandantSignalsKey].size, 0);
t.assert.strictEqual(signal[dependantSignalsKey].size, 0);
done();
});
});
});
it('keeps all active dependant signals', (t, done) => {
makeSubsequentCalls(limit, (signal, depandantSignalsKey) => {
t.assert.strictEqual(signal[depandantSignalsKey].size, limit);
makeSubsequentCalls(limit, (signal, dependantSignalsKey) => {
t.assert.strictEqual(signal[dependantSignalsKey].size, limit);
done();
}, true);