-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GimmeTime): Add new time() function that generates a random time
- Loading branch information
1 parent
d7bf3b1
commit f2067be
Showing
9 changed files
with
236 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}); |
Oops, something went wrong.