aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSara Reynolds <sara.reynolds@consensys.net>2018-07-26 07:26:30 +0800
committerSara Reynolds <sara.reynolds@consensys.net>2018-07-26 07:26:30 +0800
commit6eadf5b22b9ffac4fe41be0e690e95f825e700ea (patch)
treec61314dcd0d45abb0d6a9d2070503ac4e774546c
parent9ca4b66c82ab9ec46c6599778df7b661e927edfa (diff)
downloaddexon-wallet-6eadf5b22b9ffac4fe41be0e690e95f825e700ea.tar.gz
dexon-wallet-6eadf5b22b9ffac4fe41be0e690e95f825e700ea.tar.zst
dexon-wallet-6eadf5b22b9ffac4fe41be0e690e95f825e700ea.zip
Update prop names
-rw-r--r--ui/app/components/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/components/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js b/ui/app/components/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js
index 334ec449..fb5cff1c 100644
--- a/ui/app/components/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js
+++ b/ui/app/components/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js
@@ -8,7 +8,7 @@ const propsMethodSpies = {
onHeaderClick: sinon.spy(),
}
-describe('Confirm Detail Row Component', function () {
+describe.only('Confirm Detail Row Component', function () {
let wrapper
beforeEach(() => {
@@ -16,16 +16,16 @@ describe('Confirm Detail Row Component', function () {
errorType={'mockErrorType'}
label={'mockLabel'}
showError={false}
- fiatFee = {'mockFiatFee'}
- ethFee = {'mockEthFee'}
- fiatFeeColor= {'mockColor'}
+ fiatText = {'mockFiatText'}
+ ethText = {'mockEthText'}
+ fiatTextColor= {'mockColor'}
onHeaderClick= {propsMethodSpies.onHeaderClick}
headerText = {'mockHeaderText'}
headerTextClassName = {'mockHeaderClass'}
/>)
})
- describe('render', () => {
+ describe.only('render', () => {
it('should render a div with a confirm-detail-row class', () => {
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', () => {
- 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', () => {
- 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', () => {