Skip to content

Commit

Permalink
remove unnecessary typing
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Dec 19, 2024
1 parent 38f4092 commit 781c4fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Get many publication versions', () => {
});

expect(getPublications.status).toEqual(200);
const publicationDates: Date[] = getPublications.body.data.map((version) => version.publishedDate as Date);
const publicationDates = getPublications.body.data.map((version) => version.publishedDate as Date);
// Sort a copy of the dates from the results to confirm order.
const sortedPublicationDates = [...publicationDates].sort(
(a, b) => new Date(b).getTime() - new Date(a).getTime()
Expand Down

0 comments on commit 781c4fb

Please sign in to comment.