Skip to content

Commit

Permalink
✅ fix and enable mainMenu unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faival committed Jul 24, 2018
1 parent 3cb2ada commit 8771e1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/mainMenu/mainMenu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('MainMenu', () => {
location: {
pathname: `${routes.delegates.path}`,
},
replace: sinon.spy(),
push: sinon.spy(),
};


Expand Down Expand Up @@ -114,7 +114,7 @@ describe('MainMenu', () => {
<MainMenu {...props} />
</MemoryRouter>, options);
wrapper.find(Tab).at(1).simulate('click');
expect(history.replace).to.have.been.calledWith(`${routes.wallet.path}`);
expect(history.push).to.have.been.calledWith(`${routes.wallet.path}`);
});

it('should click on more activate the drawer', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/testFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const unitTestsDict = [
// './components/sendWritable/index.test.js',
// './components/sendWritable/send.test.js',
// './components/actionBar/index.test.js',
'./components/mainMenu/mainMenu.test.js',
// './components/mainMenu/mainMenu.test.js',
// './components/mainMenu/index.test.js',
// './components/resultBox/resultBox.test.js',
// './components/proxyDialog/index.test.js',
Expand Down

0 comments on commit 8771e1c

Please sign in to comment.