diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-07-08 09:53:00 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-07-08 09:53:00 +0800 |
commit | 7d691c7398bef524334791f894427aa3ca53297c (patch) | |
tree | 75e579072bb9e88d31aa88865bfbfce4ad55d629 /ui/app/components | |
parent | a2d9c43fba49680d7553409a4f5013d3febd80e9 (diff) | |
download | tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.tar tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.tar.gz tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.tar.bz2 tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.tar.lz tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.tar.xz tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.tar.zst tangerine-wallet-browser-7d691c7398bef524334791f894427aa3ca53297c.zip |
Fix existing unit tests
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/send_/send-footer/tests/send-footer-component.test.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/app/components/send_/send-footer/tests/send-footer-component.test.js b/ui/app/components/send_/send-footer/tests/send-footer-component.test.js index e071fe54f..4b2cd327d 100644 --- a/ui/app/components/send_/send-footer/tests/send-footer-component.test.js +++ b/ui/app/components/send_/send-footer/tests/send-footer-component.test.js @@ -166,10 +166,13 @@ describe('SendFooter Component', function () { assert.equal(propsMethodSpies.update.callCount, 0) }) - it('should call history.push', () => { - wrapper.instance().onSubmit(MOCK_EVENT) - assert.equal(historySpies.push.callCount, 1) - assert.equal(historySpies.push.getCall(0).args[0], CONFIRM_TRANSACTION_ROUTE) + it('should call history.push', done => { + Promise.resolve(wrapper.instance().onSubmit(MOCK_EVENT)) + .then(() => { + assert.equal(historySpies.push.callCount, 1) + assert.equal(historySpies.push.getCall(0).args[0], CONFIRM_TRANSACTION_ROUTE) + done() + }) }) }) |