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.

GiteaAbsoluteDate.test.js 400B

123456789101112131415
  1. import {toAbsoluteLocaleDate} from './GiteaAbsoluteDate.js';
  2. test('toAbsoluteLocaleDate', () => {
  3. expect(toAbsoluteLocaleDate('2024-03-15', 'en-US', {
  4. year: 'numeric',
  5. month: 'long',
  6. day: 'numeric',
  7. })).toEqual('March 15, 2024');
  8. expect(toAbsoluteLocaleDate('2024-03-15', 'de-DE', {
  9. year: 'numeric',
  10. month: 'long',
  11. day: 'numeric',
  12. })).toEqual('15. März 2024');
  13. });