Files
explore/ui/tx/assetFlows/utils/getAddressValues.spec.ts
tom goriunovandGitHub 5d337fc555 Migrate from Jest to Vitest (#3173)
* first part of transition

* second part of transition

* remove jest

* bump up node version and playwright version

* update all screenshots because of the new playwright version

* fix tests

* one more screenshot update
2025-12-10 19:21:07 +01:00

20 lines
572 B
TypeScript

import * as transactionMock from 'mocks/noves/transaction';
import { it, expect } from 'vitest';
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,
},
},
]);
});