Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hql287 committed Jan 19, 2018
1 parent 6e2f7a1 commit b5f2c81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions __mocks__/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
app: jest.fn(),
ipcRenderer: {
send: jest.fn(),
on: jest.fn(),
},
remote: {
require: jest.fn(name => {
Expand Down
8 changes: 4 additions & 4 deletions app/components/layout/__tests__/AppNav.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ 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', () => {
// expect(wrapper.prop('activeTab')).toEqual('form');
// expect(wrapper.prop('activeTab')).not.toEqual('settings');
});

// it('contains active indicator', () => {
it('contains active indicator', () => {
// const sideBar = shallow(<ActiveIndicator/>);
// expect(wrapper.contains(sideBar)).toEqual(true);
// });
// it('shows active indicator at the correct position');
});
it('shows active indicator at the correct position');
});

0 comments on commit b5f2c81

Please sign in to comment.