1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-21 07:41:39 +03:00
leon/test/unit/server/helpers/date.spec.js

18 lines
422 B
JavaScript
Raw Normal View History

2019-02-10 15:26:50 +03:00
import moment from 'moment-timezone'
import date from '@/helpers/date'
describe('date helper', () => {
describe('dateTime()', () => {
test('returns date time with UTC', () => {
expect(date.dateTime()).toBe(moment().tz(global.date.time_zone).format())
})
})
describe('timeZone()', () => {
test('returns time zone', () => {
expect(date.timeZone()).toBe(global.date.time_zone)
})
})
})