Files
explore/ui/tx/assetFlows/utils/getAddressValues.test.ts
cc9cb368aa Noves integration (#1398)
* noves integration

* code refactored

* PR changes added

* Code set up for new proxy 'describeTxs'

* minor fix

* Rename Novestranslate.ts to NovesTranslate.ts

* some quick stuff

* partial fixes and commit for changing how useDescribeTxs and txsContent work (new GET endpoint)

* Pending PR fixes

* tx asset flows pageSize of 50

* PR comments fixes

* rename expected api endpoint for the describe_txs endpoint, more accurate and descriptive

* one final re-name for api endpoint (make it clear it's an object vs an action)

* scrollRef fix

* build error fix

* design fixes

* sub heading fix

* Removed pagination in account history

* remove duplicate route

* updated table theme and icon gap

* Removed wrong color in table

* removed null validation in page params

* updated margin

* margin fix

* add icons to contracts

* Sub-heading interpretation simplified

* token alignment fix

* tests added for new functions

* margin fix

* remove divider on mobile asset flows

---------

Co-authored-by: NahuelNoves <[email protected]>
Co-authored-by: francisco-noves <[email protected]>
2024-03-26 18:39:46 +01:00

19 lines
535 B
TypeScript

import * as transactionMock from 'mocks/noves/transaction';
import { createAddressValues } from './getAddressValues';
it('creates addresses summary values', async() => {
const result = createAddressValues(transactionMock.transaction, transactionMock.transaction.classificationData.description);
expect(result).toEqual([
{
match: '0xef326CdAdA59D3A740A76bB5f4F88Fb2',
type: 'address',
value: {
hash: '0xef326CdAdA59D3A740A76bB5f4F88Fb2f1076164',
is_contract: true,
},
},
]);
});