From 1db56f589b8fef684c5a5d5c1e2c3c9232064673 Mon Sep 17 00:00:00 2001 From: Bilal Zahory Date: Thu, 22 Aug 2024 12:59:36 -0400 Subject: [PATCH] test: update for refactors --- .../src/UserOperationController.test.ts | 6 +++--- .../user-operation-controller/src/utils/transaction.test.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/user-operation-controller/src/UserOperationController.test.ts b/packages/user-operation-controller/src/UserOperationController.test.ts index d4dacfdac4..300a129a73 100644 --- a/packages/user-operation-controller/src/UserOperationController.test.ts +++ b/packages/user-operation-controller/src/UserOperationController.test.ts @@ -424,7 +424,7 @@ describe('UserOperationController', () => { smartContractAccount, swaps: { approvalTxId: 'testTxId', - approvalTxParams: { data: { from: 'from' } }, + approvalTx: { data: { from: 'from' } }, destinationTokenAmount: '0x1', destinationTokenAddress: '0x1', destinationTokenDecimals: 3, @@ -446,7 +446,7 @@ describe('UserOperationController', () => { expect.objectContaining({ swapsMetadata: { approvalTxId: 'testTxId', - approvalTxParams: { data: { from: 'from' } }, + approvalTx: { data: { from: 'from' } }, destinationTokenAmount: '0x1', destinationTokenAddress: '0x1', destinationTokenDecimals: 3, @@ -482,7 +482,7 @@ describe('UserOperationController', () => { expect.objectContaining({ swapsMetadata: { approvalTxId: null, - approvalTxParams: null, + approvalTx: null, destinationTokenAddress: null, destinationTokenAmount: null, destinationTokenDecimals: null, diff --git a/packages/user-operation-controller/src/utils/transaction.test.ts b/packages/user-operation-controller/src/utils/transaction.test.ts index 6307d3b0cf..3bfc9e6bf3 100644 --- a/packages/user-operation-controller/src/utils/transaction.test.ts +++ b/packages/user-operation-controller/src/utils/transaction.test.ts @@ -259,7 +259,7 @@ describe('transation', () => { ...USER_OPERATION_METADATA_MOCK, swapsMetadata: { approvalTxId: 'testTxId', - approvalTxParams: { test: 'value' }, + approvalTx: { test: 'value' }, destinationTokenAddress: '0x2', destinationTokenDecimals: '3', destinationTokenSymbol: 'TEST', @@ -275,7 +275,7 @@ describe('transation', () => { expect(transactionMetadata).toStrictEqual( expect.objectContaining({ approvalTxId: 'testTxId', - approvalTxParams: { test: 'value' }, + approvalTx: { test: 'value' }, destinationTokenAddress: '0x2', destinationTokenDecimals: '3', destinationTokenSymbol: 'TEST',