Skip to content

Commit 912a638

Browse files
fix: mocked context invoke
1 parent 12b3ce6 commit 912a638

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/mocks/getCommandContext.mock.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const getCommandContextMock = <
9292
if (!invokeMocks[na.serviceName][na.serviceVersion]) {
9393
invokeMocks[na.serviceName][na.serviceVersion] = {}
9494
}
95-
return getInvokeProxy<typeof x>(adr, lvl + 1)
95+
return getInvokeProxy<typeof x>(na, lvl + 1)
9696
}
9797

9898
if (lvl === 2) {

packages/core/src/mocks/getSubscriptionContext.mock.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const getSubscriptionContextMock = <Invokes = {}, EmitListType = {}>(
8686
if (!invokeMocks[na.serviceName][na.serviceVersion]) {
8787
invokeMocks[na.serviceName][na.serviceVersion] = {}
8888
}
89-
return getInvokeProxy<typeof x>(adr, lvl + 1)
89+
return getInvokeProxy<typeof x>(na, lvl + 1)
9090
}
9191

9292
if (lvl === 2) {

0 commit comments

Comments
 (0)