You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tag:
Branch:
Tree:
b0a510562e
develop
feature/default_network_editable
v10.22.3
${ noResults }
30 lines
951 B
30 lines
951 B
import React from 'react';
|
|||
|
import { shallowWithContext } from '../../../../test/lib/render-helpers';
|
||
import SignatureRequest from './signature-request.component';
|
|||
|
|||
describe('Signature Request Component', () => {
|
|||
describe('render', () => {
|
|||
const fromAddress = '0x123456789abcdef';
|
|||
it('should render a div with one child', () => {
|
|||
|
const wrapper = shallowWithContext(
|
||
<SignatureRequest
|
|||
clearConfirmTransaction={() => undefined}
|
|||
cancel={() => undefined}
|
|||
sign={() => undefined}
|
|||
txData={{
|
|||
msgParams: {
|
|||
data: '{"message": {"from": {"name": "hello"}}}',
|
|||
from: fromAddress,
|
|||
},
|
|||
}}
|
|||
fromAccount={{ address: fromAddress }}
|
|||
|
/>,
|
||
);
|
|||
|
|||
expect(wrapper.is('div')).toStrictEqual(true);
|
|||
expect(wrapper).toHaveLength(1);
|
|||
expect(wrapper.hasClass('signature-request')).toStrictEqual(true);
|
|||
});
|
|||
});
|
|||
});
|