diff --git a/test/unit/specs/PageBalances.spec.js b/test/unit/specs/PageBalances.spec.js index 6bba95d441..011006ec93 100644 --- a/test/unit/specs/PageBalances.spec.js +++ b/test/unit/specs/PageBalances.spec.js @@ -26,16 +26,7 @@ describe('PageBalances', () => { }) wrapper = mount(PageBalances, { localVue, - store, - stub: { - AnchorCopy: true, - Btn: true, - ListItem: true, - ModalSearch: true, - Page: true, - Part: true, - ToolBar: true - } + store }) store.commit('setWalletBalances', [{ denom: 'ATOM', diff --git a/test/unit/specs/PageDelegates.spec.js b/test/unit/specs/PageDelegates.spec.js index ca97b7267c..c6442b68b0 100644 --- a/test/unit/specs/PageDelegates.spec.js +++ b/test/unit/specs/PageDelegates.spec.js @@ -60,7 +60,8 @@ describe('PageDelegates', () => { localVue, store, stubs: { - 'data-error': '' + 'data-error': '', + 'li-delegate': '' } }) @@ -77,6 +78,10 @@ describe('PageDelegates', () => { expect(wrapper.contains('.ni-modal-search')).toBe(true) }) + it('should show candidates', () => { + expect(wrapper.findAll('li-delegate').length).toBe(2) + }) + it('should refresh candidates on click', () => { wrapper.findAll('.ni-tool-bar i').at(1).trigger('click') expect(store.dispatch).toHaveBeenCalledWith('getDelegates')