Skip to content

Commit

Permalink
Expanded test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zasa-san committed Mar 9, 2021
1 parent 282c330 commit 5eacd7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/react/Layout/specs/DocumentCounter.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('DocumentCounter', () => {
entityListCount: 5,
entityTotal: 100,
totalConnectionsCount: 3,
maxedTotalEntities: 'eq',
maxedTotalEntities: 'gte',
};
const render = () => {
component = shallow(<DocumentCounter {...props} />);
Expand All @@ -34,5 +34,9 @@ describe('DocumentCounter', () => {
expect(component.children().get(6).props.children[1]).toBe(100);
expect(component.children().get(8).props.children).toBe('documents');
});

it('should show a + sign next to the total entities when maxedTotalEntities has the gte flag', () => {
expect(component.children().get(6).props.children).toContain('+');
});
});
});

0 comments on commit 5eacd7f

Please sign in to comment.