@@ -120,7 +120,7 @@ describe("IcWebsocket class", () => {
120120 const openMessageBytes = await mockWsServer . nextMessage as ArrayBuffer ;
121121
122122 // reconstruct the message that the client should send
123- const clientKey = icWs [ "_clientKey" ] ;
123+ const clientKey = icWs [ "_clientKey" ] ! ;
124124 const { envelope : { content : openMessageContent } } : WsAgentRequestMessage < CallRequest > = Cbor . decode ( openMessageBytes ) ;
125125
126126 expect ( canisterId . compareTo (
@@ -172,7 +172,7 @@ describe("IcWebsocket class", () => {
172172 icWs . onerror = onError ;
173173 await mockWsServer . connected ;
174174
175- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
175+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
176176 // workaround to simulate the client identity
177177 icWs [ "_clientKey" ] = client1Key ;
178178 // send the open confirmation message from the canister
@@ -205,7 +205,7 @@ describe("IcWebsocket class", () => {
205205 icWs . onclose = onClose ;
206206 await mockWsServer . connected ;
207207
208- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
208+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
209209 // workaround to simulate the client identity
210210 icWs [ "_clientKey" ] = client1Key ;
211211 // send the open confirmation message from the canister
@@ -240,7 +240,7 @@ describe("IcWebsocket class", () => {
240240 icWs . onclose = onClose ;
241241 await mockWsServer . connected ;
242242
243- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
243+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
244244 // workaround to simulate the client identity
245245 icWs [ "_clientKey" ] = client1Key ;
246246 // send the open confirmation message from the canister
@@ -280,7 +280,7 @@ describe("IcWebsocket class", () => {
280280 // wait for the open message from the client
281281 await mockWsServer . nextMessage ;
282282
283- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
283+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
284284 // workaround to simulate the client identity
285285 icWs [ "_clientKey" ] = client1Key ;
286286 // send the open confirmation message from the canister
@@ -347,7 +347,7 @@ describe("Messages acknowledgement", () => {
347347 // wait for the open message from the client
348348 await mockWsServer . nextMessage ;
349349
350- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
350+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
351351 // workaround to simulate the client identity
352352 icWs [ "_clientKey" ] = client1Key ;
353353 // send the open confirmation message from the canister
@@ -389,7 +389,7 @@ describe("Messages acknowledgement", () => {
389389 // wait for the open message from the client
390390 await mockWsServer . nextMessage ;
391391
392- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
392+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
393393 // workaround to simulate the client identity
394394 icWs [ "_clientKey" ] = client1Key ;
395395 // send the open confirmation message from the canister
@@ -435,7 +435,7 @@ describe("Messages acknowledgement", () => {
435435 // wait for the open message from the client
436436 await mockWsServer . nextMessage ;
437437
438- const originalClientKey = { ...icWs [ "_clientKey" ] } ;
438+ const originalClientKey = { ...icWs [ "_clientKey" ] ! } ;
439439 // workaround to simulate the client identity
440440 icWs [ "_clientKey" ] = client1Key ;
441441 // send the open confirmation message from the canister
0 commit comments