aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-from-row/tests
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-14 17:31:41 +0800
committerDan <danjm.com@gmail.com>2018-05-14 17:31:41 +0800
commitc2ed2d4e5003abd01552570452a5b0b38626abca (patch)
tree4d5e0a96cb75f3fdb2812e11c10a61b2e0a68d32 /ui/app/components/send_/send-content/send-from-row/tests
parent145e53b404af6adb49fba2636474455aba86ff81 (diff)
downloadtangerine-wallet-browser-c2ed2d4e5003abd01552570452a5b0b38626abca.tar.gz
tangerine-wallet-browser-c2ed2d4e5003abd01552570452a5b0b38626abca.tar.zst
tangerine-wallet-browser-c2ed2d4e5003abd01552570452a5b0b38626abca.zip
Lint fixes
Diffstat (limited to 'ui/app/components/send_/send-content/send-from-row/tests')
-rw-r--r--ui/app/components/send_/send-content/send-from-row/tests/send-from-row-component.test.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/app/components/send_/send-content/send-from-row/tests/send-from-row-component.test.js b/ui/app/components/send_/send-content/send-from-row/tests/send-from-row-component.test.js
index 16463abf3..9ba8d1739 100644
--- a/ui/app/components/send_/send-content/send-from-row/tests/send-from-row-component.test.js
+++ b/ui/app/components/send_/send-content/send-from-row/tests/send-from-row-component.test.js
@@ -14,8 +14,6 @@ const propsMethodSpies = {
setSendTokenBalance: sinon.spy(),
}
-const MOCK_EVENT = { preventDefault: () => {} }
-
sinon.spy(SendFromRow.prototype, 'handleFromChange')
describe('SendFromRow Component', function () {
@@ -60,8 +58,8 @@ describe('SendFromRow Component', function () {
it('should call tokenContract.balanceOf and setSendTokenBalance if tokenContract is defined', async () => {
wrapper.setProps({
tokenContract: {
- balanceOf: () => new Promise((resolve) => resolve('mockUsersToken'))
- }
+ balanceOf: () => new Promise((resolve) => resolve('mockUsersToken')),
+ },
})
assert.equal(propsMethodSpies.setSendTokenBalance.callCount, 0)
await instance.handleFromChange('mockFrom')
@@ -81,9 +79,7 @@ describe('SendFromRow Component', function () {
it('should pass the correct props to SendRowWrapper', () => {
const {
- errorType,
label,
- showError,
} = wrapper.find(SendRowWrapper).props()
assert.equal(label, 'from_t:')