mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
565 B
26 lines
565 B
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { DateHelper } from './date-helper';
|
|
|
|
describe('DateHelper', () => {
|
|
it('should use default locale if not configured', () => {
|
|
DateHelper.setlocale(null);
|
|
|
|
const locale = DateHelper.getLocale();
|
|
|
|
expect(locale).toBe('en');
|
|
});
|
|
|
|
it('should use configured locale', () => {
|
|
DateHelper.setlocale('it');
|
|
|
|
const locale = DateHelper.getLocale();
|
|
|
|
expect(locale).toBe('it');
|
|
});
|
|
});
|
|
|