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
22 lines
677 B
TypeScript
22 lines
677 B
TypeScript
import * as transactionMock from 'mocks/noves/transaction';
|
|
import { it, expect } from 'vitest';
|
|
|
|
import { createNovesSummaryObject } from './createNovesSummaryObject';
|
|
|
|
it('creates interpretation summary object', async() => {
|
|
const result = createNovesSummaryObject(transactionMock.transaction);
|
|
|
|
expect(result).toEqual({
|
|
summary_template: ' Called function \'stake\' on contract{0xef326CdAdA59D3A740A76bB5f4F88Fb2}',
|
|
summary_template_variables: {
|
|
'0xef326CdAdA59D3A740A76bB5f4F88Fb2': {
|
|
type: 'address',
|
|
value: {
|
|
hash: '0xef326CdAdA59D3A740A76bB5f4F88Fb2f1076164',
|
|
is_contract: true,
|
|
},
|
|
},
|
|
},
|
|
});
|
|
});
|