Skip to content

Commit

Permalink
test: fix broker test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jan 21, 2025
1 parent 4b354dc commit 49ae1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/brokers/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const mockRedisClient = {
test('pubsub with custom encoding', async () => {
const encode = vi.fn((data) => data);

const broker = new PubSubRedisBroker(mockRedisClient, { encode });
const broker = new PubSubRedisBroker(mockRedisClient, { encode, group: 'group' });
await broker.publish('test', 'test');
expect(encode).toHaveBeenCalledWith('test');
});

0 comments on commit 49ae1a5

Please sign in to comment.