Skip to content

Commit

Permalink
feat(GimmeTime): Add new time() function that generates a random time
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-cit committed May 9, 2019
1 parent d7bf3b1 commit f2067be
Show file tree
Hide file tree
Showing 9 changed files with 236 additions and 670 deletions.
18 changes: 18 additions & 0 deletions __tests__/time.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import gimme from '../src/functions/time';
import GimmeError from '../src/models/GimmeError';

describe('gimme.time()', () => {
it('should return a string', () => {
const result = gimme.time();
expect(
typeof result,
`should be type string. Got: ${typeof result}`
).toEqual('string');
});

it.todo('when period is false, it should match the HH:MM format');
it.todo(
'when period is false, single digit hours should have a zero prepended to it'
);
it.todo('single digit minutes should have a zero prepended to it');
});
Loading

0 comments on commit f2067be

Please sign in to comment.