mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-18 22:31:32 +03:00
20 lines
436 B
JavaScript
20 lines
436 B
JavaScript
'use strict'
|
|
|
|
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)
|
|
})
|
|
})
|
|
})
|