Skip to content

Commit

Permalink
fix: Remove close call method (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
gleip authored Nov 8, 2024
1 parent d8b0ce2 commit 61145d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export class Client<E extends Emitter = Emitter> extends Root {
batch.push(message);
}
if (batch.length > 0) listener.emit(eventName, batch);
await events.close();
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/__tests__/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ describe('Testing Client class methods', () => {
const payload = { data: { elapsed: 42 } };
const subscribe = new PassThrough({ objectMode: true });
const secondSubscribe = new PassThrough({ objectMode: true });
subscribe['close'] = jest.fn().mockResolvedValue('Ok');
secondSubscribe['close'] = jest.fn().mockResolvedValue('Ok');
jetstreamFetchMock.mockResolvedValueOnce(subscribe);
jetstreamFetchMock.mockResolvedValueOnce(secondSubscribe);

Expand Down

0 comments on commit 61145d8

Please sign in to comment.