-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Theo
committed
May 7, 2019
1 parent
d332537
commit 0b77d3a
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/components/date_picker/super_date_picker/relative_options.test.ts
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 { relativeUnitsFromLargestToSmallest } from './relative_options'; | ||
|
||
describe('relativeUnitsFromLargestToSmallest', () => { | ||
test('relativeUnitsFromLargestToSmallest length', () => { | ||
expect(relativeUnitsFromLargestToSmallest.length).toBe(7); | ||
}); | ||
test('relativeUnitsFromLargestToSmallest order', () => { | ||
expect(relativeUnitsFromLargestToSmallest).toEqual([ | ||
'y', | ||
'M', | ||
'w', | ||
'd', | ||
'h', | ||
'm', | ||
's', | ||
]); | ||
}); | ||
}); |
6 changes: 5 additions & 1 deletion
6
...ker/super_date_picker/relative_options.js → ...ker/super_date_picker/relative_options.ts
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