UI component updates (#4010)

* Update blockStatus & test results

* IdentityIcon rendering tests for #3950

* Update IdentityName with external messages

* Expand to cover basic layout sections

* ConfirmDialog rendering tests

* TxHash expansion & tests

* Cleanup ui/*.spec.js PropType warnings

* Use react-intl plural for confirmation/confirmations (verified manually)
This commit is contained in:
Jaco Greeff
2017-01-05 12:06:46 +01:00
committed by GitHub
parent 602a4429cc
commit ddeb06d9cc
16 changed files with 652 additions and 69 deletions

View File

@@ -25,7 +25,7 @@ import TxRow from './txRow';
const api = new Api({ execute: sinon.stub() });
function renderShallow (props) {
function render (props) {
return shallow(
<TxRow
{ ...props } />,
@@ -33,7 +33,7 @@ function renderShallow (props) {
);
}
describe('ui/TxRow', () => {
describe('ui/TxList/TxRow', () => {
describe('rendering', () => {
it('renders defaults', () => {
const block = {
@@ -45,7 +45,7 @@ describe('ui/TxRow', () => {
value: new BigNumber(1)
};
expect(renderShallow({ block, tx })).to.be.ok;
expect(render({ address: '0x123', block, isTest: true, tx })).to.be.ok;
});
});
});

View File

@@ -36,7 +36,7 @@ const STORE = {
}
};
function renderShallow (props) {
function render (props) {
return shallow(
<TxList
store={ STORE }
@@ -48,7 +48,7 @@ function renderShallow (props) {
describe('ui/TxList', () => {
describe('rendering', () => {
it('renders defaults', () => {
expect(renderShallow()).to.be.ok;
expect(render({ address: '0x123', hashes: [] })).to.be.ok;
});
});
});