Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #100 from gasserandreas/fix/#98/fix-build
Browse files Browse the repository at this point in the history
fix(#98): fixed failing build
  • Loading branch information
gasserandreas authored Apr 1, 2019
2 parents 42d9d96 + 95d59a3 commit b975c90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/util/__tests__/util.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import moment from 'moment';

import * as util from '../util';
import { getUrl } from '../services/networkUtils';

Expand All @@ -19,8 +21,9 @@ it('should return correct thumb image src', () => {
});

it('should return correct image creation date time', () => {
const dateTime = '9 Feb 2019 - 09:02:73';
expect(util.getImageCreationDateTime(dateString)).toEqual(dateTime);
const format = 'D MMM YYYY - HH:MM:SS';
expect(util.getImageCreationDateTime(dateString))
.toEqual(moment(dateString).format(format));
});

it('should return default formated date string', () => {
Expand Down

0 comments on commit b975c90

Please sign in to comment.