mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Update prop names
This commit is contained in:
parent
9ca4b66c82
commit
6eadf5b22b
@ -8,7 +8,7 @@ const propsMethodSpies = {
|
|||||||
onHeaderClick: sinon.spy(),
|
onHeaderClick: sinon.spy(),
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('Confirm Detail Row Component', function () {
|
describe.only('Confirm Detail Row Component', function () {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@ -16,16 +16,16 @@ describe('Confirm Detail Row Component', function () {
|
|||||||
errorType={'mockErrorType'}
|
errorType={'mockErrorType'}
|
||||||
label={'mockLabel'}
|
label={'mockLabel'}
|
||||||
showError={false}
|
showError={false}
|
||||||
fiatFee = {'mockFiatFee'}
|
fiatText = {'mockFiatText'}
|
||||||
ethFee = {'mockEthFee'}
|
ethText = {'mockEthText'}
|
||||||
fiatFeeColor= {'mockColor'}
|
fiatTextColor= {'mockColor'}
|
||||||
onHeaderClick= {propsMethodSpies.onHeaderClick}
|
onHeaderClick= {propsMethodSpies.onHeaderClick}
|
||||||
headerText = {'mockHeaderText'}
|
headerText = {'mockHeaderText'}
|
||||||
headerTextClassName = {'mockHeaderClass'}
|
headerTextClassName = {'mockHeaderClass'}
|
||||||
/>)
|
/>)
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('render', () => {
|
describe.only('render', () => {
|
||||||
it('should render a div with a confirm-detail-row class', () => {
|
it('should render a div with a confirm-detail-row class', () => {
|
||||||
assert.equal(wrapper.find('div.confirm-detail-row').length, 1)
|
assert.equal(wrapper.find('div.confirm-detail-row').length, 1)
|
||||||
})
|
})
|
||||||
@ -39,11 +39,11 @@ describe('Confirm Detail Row Component', function () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('should render the fiatText as a child of the confirm-detail-row__fiat', () => {
|
it('should render the fiatText as a child of the confirm-detail-row__fiat', () => {
|
||||||
assert.equal(wrapper.find('.confirm-detail-row__details > .confirm-detail-row__fiat').childAt(0).text(), 'mockFiatFee')
|
assert.equal(wrapper.find('.confirm-detail-row__details > .confirm-detail-row__fiat').childAt(0).text(), 'mockFiatText')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should render the ethText as a child of the confirm-detail-row__eth', () => {
|
it('should render the ethText as a child of the confirm-detail-row__eth', () => {
|
||||||
assert.equal(wrapper.find('.confirm-detail-row__details > .confirm-detail-row__eth').childAt(0).text(), '♦ mockEthFee')
|
assert.equal(wrapper.find('.confirm-detail-row__details > .confirm-detail-row__eth').childAt(0).text(), 'mockEthText')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should set the fiatTextColor on confirm-detail-row__fiat', () => {
|
it('should set the fiatTextColor on confirm-detail-row__fiat', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user