Skip to content

Commit 5e7557a

Browse files
committed
fix: tests
1 parent 6ebb63b commit 5e7557a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IMQClient.methods.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ describe('IMQClient methods', () => {
2323
sinon.restore();
2424
});
2525

26-
it('should delegate subscribe() to subscriptionImq with client name', async () => {
26+
it('should delegate subscribe() to subscriptionImq with service name', async () => {
2727
client = new MethodsClient({ logger });
2828
const subImq: any = (client as any).subscriptionImq;
2929
const spy = sinon.stub(subImq, 'subscribe').resolves();
3030
const handler = sinon.spy();
3131
await client.subscribe(handler as any);
3232
expect(spy.calledOnce).to.equal(true);
33-
expect(spy.firstCall.args[0]).to.equal(client.name);
33+
expect(spy.firstCall.args[0]).to.equal(client.serviceName);
3434
expect(spy.firstCall.args[1]).to.equal(handler);
3535
});
3636

0 commit comments

Comments
 (0)