diff --git a/__mocks__/electron.js b/__mocks__/electron.js index 6653cb6b..6b6219a3 100644 --- a/__mocks__/electron.js +++ b/__mocks__/electron.js @@ -2,6 +2,7 @@ module.exports = { app: jest.fn(), ipcRenderer: { send: jest.fn(), + on: jest.fn(), }, remote: { require: jest.fn(name => { diff --git a/app/components/layout/__tests__/AppNav.spec.js b/app/components/layout/__tests__/AppNav.spec.js index 86cf70c3..bfe4450b 100644 --- a/app/components/layout/__tests__/AppNav.spec.js +++ b/app/components/layout/__tests__/AppNav.spec.js @@ -15,7 +15,7 @@ describe('Renders correctly to the DOM', () => { }); it('renders 4 tabs', () => { - // expect(wrapper.find('a')).toHaveLength(4); + expect(wrapper.find('a')).toHaveLength(4); }); it('has correct porps', () => { @@ -23,9 +23,9 @@ describe('Renders correctly to the DOM', () => { // expect(wrapper.prop('activeTab')).not.toEqual('settings'); }); - // it('contains active indicator', () => { + it('contains active indicator', () => { // const sideBar = shallow(); // expect(wrapper.contains(sideBar)).toEqual(true); - // }); - // it('shows active indicator at the correct position'); + }); + it('shows active indicator at the correct position'); });