@@ -1239,18 +1239,20 @@ describe('BridgeController SSE', function () {
12391239 [
12401240 "Quote validation failed",
12411241 [
1242- "lifi|trade",
1243- "lifi|trade.chainId",
1244- "lifi|trade.to",
1245- "lifi|trade.from",
1246- "lifi|trade.value",
1247- "lifi|trade.data",
1248- "lifi|trade.gasLimit",
1249- "lifi|trade.unsignedPsbtBase64",
1250- "lifi|trade.inputsToSign",
1251- "lifi|trade.raw_data_hex",
1252- "lifi|trade.xdrBase64",
1253- "lifi|trade.xdr",
1242+ "At path: trade (union) -- Expected the value to satisfy a union of \`type | type | type | union | string\`, but received: [object Object]",
1243+ "At path: trade.chainId (union) -- Expected a number, but received: undefined",
1244+ "At path: trade.to (union) -- Expected a value of type \`HexString\`, but received: \`undefined\`",
1245+ "At path: trade.from (union) -- Expected a value of type \`HexString\`, but received: \`undefined\`",
1246+ "At path: trade.value (union) -- Expected a value of type \`HexString\`, but received: \`undefined\`",
1247+ "At path: trade.data (union) -- Expected a value of type \`HexString\`, but received: \`undefined\`",
1248+ "At path: trade.gasLimit (union) -- Expected a number, but received: undefined",
1249+ "At path: trade.unsignedPsbtBase64 (union) -- Expected a string, but received: undefined",
1250+ "At path: trade.inputsToSign (union) -- Expected an array value, but received: undefined",
1251+ "At path: trade.raw_data_hex (union) -- Expected a string, but received: undefined",
1252+ "At path: trade (union) -- Expected the value to satisfy a union of \`type | type\`, but received: [object Object]",
1253+ "At path: trade.xdrBase64 (union) -- Expected a string, but received: undefined",
1254+ "At path: trade.xdr (union) -- Expected a string, but received: undefined",
1255+ "At path: trade (union) -- Expected a string, but received: [object Object]",
12541256 ],
12551257 ]
12561258 ` ) ;
@@ -1268,21 +1270,21 @@ describe('BridgeController SSE', function () {
12681270 ) ;
12691271 expect ( consoleWarnSpy . mock . calls ) . toHaveLength ( 3 ) ;
12701272 expect ( consoleWarnSpy . mock . calls [ 1 ] ) . toMatchInlineSnapshot ( `
1271- [
1272- "Quote validation failed",
1273- [
1274- "unknown|unknown ",
1275- ],
1276- ]
1277- ` ) ;
1273+ [
1274+ "Quote validation failed",
1275+ [
1276+ "At path: <root> (type) -- Expected an object, but received: "" ",
1277+ ],
1278+ ]
1279+ ` ) ;
12781280 expect ( consoleWarnSpy . mock . calls [ 2 ] ) . toMatchInlineSnapshot ( `
1279- [
1280- "Quote validation failed",
1281- [
1282- "unknown|quote ",
1283- ],
1284- ]
1285- ` ) ;
1281+ [
1282+ "Quote validation failed",
1283+ [
1284+ "At path: quote (type) -- Expected an object, but received: undefined ",
1285+ ],
1286+ ]
1287+ ` ) ;
12861288
12871289 expect ( consoleLogSpy ) . toHaveBeenCalledTimes ( 1 ) ;
12881290 expect ( fetchBridgeQuotesSpy ) . toHaveBeenCalledTimes ( 5 ) ;
0 commit comments