@@ -181,23 +181,25 @@ describe("SmoldotConnect::smoldot", () => {
181181 const { addChain, addWellKnownChain } = smoldot . createScClient ( )
182182 const chainSpec = "testChainSpec"
183183 await addChain ( chainSpec )
184- let mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( )
184+ let mockedChain = mockedSmoldotLight
185+ . getLatestClient ( )
186+ . _getLatestChain ( ) !
185187 expect ( mockedChain . _addChainOptions . chainSpec ) . toEqual ( chainSpec )
186188
187189 await addWellKnownChain ( WellKnownChain . polkadot )
188- mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( )
190+ mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( ) !
189191 expect ( mockedChain . _addChainOptions . chainSpec ) . toEqual (
190192 "fake-polkadot-spec" ,
191193 )
192194
193195 await addWellKnownChain ( WellKnownChain . ksmcc3 )
194- mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( )
196+ mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( ) !
195197 expect ( mockedChain . _addChainOptions . chainSpec ) . toEqual (
196198 "fake-ksmcc3-spec" ,
197199 )
198200
199201 await addWellKnownChain ( WellKnownChain . rococo_v2_2 )
200- mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( )
202+ mockedChain = mockedSmoldotLight . getLatestClient ( ) . _getLatestChain ( ) !
201203 expect ( mockedChain . _addChainOptions . chainSpec ) . toEqual (
202204 "fake-rococo_v2_2-spec" ,
203205 )
@@ -212,14 +214,14 @@ describe("SmoldotConnect::smoldot", () => {
212214 . fill ( null )
213215 . map ( ( ) => addChain ( "" ) ) ,
214216 )
215- prevChains [ 0 ] . remove ( )
217+ prevChains [ 0 ] ! . remove ( )
216218 await addChain ( "" )
217219 const mockedChains = mockedSmoldotLight
218220 . getLatestClient ( )
219221 . _getChains ( )
220222 . slice ( - 4 )
221223 const lastMockedChain = mockedChains [ 3 ]
222- expect ( lastMockedChain . _addChainOptions . potentialRelayChains ) . toEqual ( [
224+ expect ( lastMockedChain ! . _addChainOptions . potentialRelayChains ) . toEqual ( [
223225 mockedChains [ 1 ] ,
224226 mockedChains [ 2 ] ,
225227 ] )
0 commit comments