We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bf1510 commit 342538eCopy full SHA for 342538e
test/unit/util/time.test.js
@@ -40,8 +40,20 @@ describe('util', () => {
40
})
41
42
describe('toIsoStripped', () => {
43
- it('return 20000101T000101001Z when given new Date(01/01/2000)', () => {
44
- expect(Time.toIsoStripped(dateTime)).toBe('20000101T000101001Z')
+ it('returns a string with length 19', () => {
+ expect(Time.toIsoStripped(dateTime).length).toBe(19)
45
+ })
46
+
47
+ it('returns a string without any colons', () => {
48
+ expect(Time.toIsoStripped(dateTime).includes(':')).toBeFalsy()
49
50
51
+ it('returns a string without any underscores', () => {
52
+ expect(Time.toIsoStripped(dateTime).includes('_')).toBeFalsy()
53
54
55
+ it('returns a string without any dashes', () => {
56
+ expect(Time.toIsoStripped(dateTime).includes('-')).toBeFalsy()
57
58
59
0 commit comments