Skip to content

Commit

Permalink
Adding additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
PenguinOfWar committed May 21, 2019
1 parent c8b9caa commit bfd0e4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/pingu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ test('pingu.setLogLevel sets to and returns', () => {
expect(pingu.checkLogLevel()).toBe(2);
});

test('pingu.setLogLevel will not set out of range', () => {
expect(pingu.setLogLevel(4)).toBe(false);
expect(pingu.setLogLevel(0)).toBe(false);
});

test('pingu.log returns', () => {
expect(pingu.log('Jest')).toBe(true);
});
Expand Down

0 comments on commit bfd0e4e

Please sign in to comment.