Skip to content

Commit

Permalink
tests: Change message
Browse files Browse the repository at this point in the history
  • Loading branch information
Shalinit3 committed Mar 22, 2019
1 parent 79d5544 commit 0f176b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/UI/__tests__/navBar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { shallow } from 'enzyme';
import NavBar from '../NavBar';

describe('Tests for <NavBar />', () => {
describe('<NavBar />', () => {
it('should render', () => {
const wrapper = shallow(<NavBar />);
expect(wrapper.dive().find('div').length).toBe(1);
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/UI/__tests__/scoreCard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import Table from '@material-ui/core/Table';
import TableRow from '@material-ui/core/TableRow';
import ScoreCard from '../ScoreCard';

describe('Tests for <ScoreCard />', () => {
describe('<ScoreCard />', () => {
it('should render just one Table at a time', () => {
const wrapper = shallow(<ScoreCard />);
expect(wrapper.dive().find(Table).length).toBe(1);
});
it('should render three Rows if its detailed scorecard', () => {
it('should render three Rows if its not detailed scorecard', () => {
const wrapper = shallow(<ScoreCard />);
expect(wrapper.dive().find(TableRow).length).toBe(3);
});
Expand Down

0 comments on commit 0f176b5

Please sign in to comment.