Skip to content

Commit

Permalink
Fix import statement in date.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
romainseb committed Dec 20, 2023
1 parent 25ddb1d commit c1577b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/utils/src/date/date.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { format as dateFnsFormat } from 'date-fns/format';
import enGB from 'date-fns/locale/en-GB';
import { enGB } from 'date-fns/locale/en-GB';

import {
convertToLocalTime,
Expand Down Expand Up @@ -126,7 +126,7 @@ describe('date', () => {
expect(localDate).toEqual('2020-05-14T01:00:00+0500');
});

it.only('should not change timezone tokens that are wrapped in hooks', () => {
it('should not change timezone tokens that are wrapped in hooks', () => {
// given
const dateObj = new Date('2020-05-13, 20:00');
const formatString = 'YYYY-MM-DD[T]HH:mm:ss[Z]';
Expand All @@ -138,6 +138,7 @@ describe('date', () => {
// then
expect(localDate).toEqual('2020-05-14T01:00:00Z');
});

it('should pass locale to datefns format method', () => {
// given
const dateObj = new Date('2020-12-20, 20:00');
Expand Down

0 comments on commit c1577b6

Please sign in to comment.