Skip to content

Commit

Permalink
fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Nov 14, 2019
1 parent 069a13f commit 993f4b4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import moment from 'moment-timezone';
import { asRelativeDateTimeRange, asAbsoluteDateTime } from '../datetime';

describe('date time formatters', () => {
beforeAll(() => {
moment.tz.setDefault('Europe/Amsterdam');
});
afterAll(() => moment.tz.setDefault(''));
describe('asRelativeDateTimeRange', () => {
beforeAll(() => {
moment.tz.setDefault('Europe/Amsterdam');
});
afterAll(() => moment.tz.setDefault(''));
const formatDateToTimezone = (dateTimeString: string) =>
new Date(dateTimeString).getTime();

Expand Down

0 comments on commit 993f4b4

Please sign in to comment.