diff --git a/test/tests/unit/ws/fetch-sockets.test.ts b/test/tests/unit/ws/fetch-sockets.test.ts index 87d5d9b8..24bcd47a 100644 --- a/test/tests/unit/ws/fetch-sockets.test.ts +++ b/test/tests/unit/ws/fetch-sockets.test.ts @@ -2,11 +2,14 @@ import * as sinon from 'sinon'; import * as td from 'testdouble'; import { expect } from 'chai'; +import type { LRUOptions } from '../../../../src/lib/ws/helper/throttle.js'; +import type { RemoteProbeSocket } from '../../../../src/lib/ws/server.js'; + const fetchRawSockets = sinon.stub().resolves([]); const getAdoptedIpToProbe = sinon.stub(); describe('fetchSockets', () => { - let fetchSockets; + let fetchSockets: (options?: LRUOptions) => Promise; before(async () => { await td.replaceEsm('../../../../src/lib/ws/server.ts', { fetchRawSockets }); diff --git a/test/tests/unit/ws/reconnect-probes.test.ts b/test/tests/unit/ws/reconnect-probes.test.ts index 9d0b6ee0..485110e6 100644 --- a/test/tests/unit/ws/reconnect-probes.test.ts +++ b/test/tests/unit/ws/reconnect-probes.test.ts @@ -7,7 +7,7 @@ const fetchSockets = sinon.stub().resolves([{ disconnect }, { disconnect }]); describe('reconnectProbes', () => { let sandbox: sinon.SinonSandbox; - let reconnectProbes; + let reconnectProbes: () => void; before(async () => { await td.replaceEsm('../../../../src/lib/ws/fetch-sockets.ts', {