mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* 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
20 lines
572 B
TypeScript
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,
|
|
},
|
|
},
|
|
]);
|
|
});
|