1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

add option to show events of a specific group by indicating its name

This commit is contained in:
Daniel Waxweiler
2021-01-15 20:30:05 +01:00
parent 47945372f9
commit 4dfeabcb84
10 changed files with 90 additions and 44 deletions

View File

@ -40,3 +40,14 @@ test('#equalsDate different year, different time', t => {
const e = new DateTimeWrapper('2021-12-24T17:46:01Z')
t.false(d.equalsDate(e))
})
test('#getCurrentDatetimeAsString correct format', t => {
const d = DateTimeWrapper.getCurrentDatetimeAsString()
t.is(d[4], '-')
t.is(d[7], '-')
t.is(d[10], 'T')
t.is(d[13], ':')
t.is(d[16], ':')
t.is(d[19], '.')
t.is(d[d.length-3], ':')
})