Skip to content

Commit

Permalink
fix: change utc time back to last ver. for passing the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengShi-1 committed Nov 8, 2024
1 parent 1946b1c commit 54be2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ describe('Dataset', () => {
})

it('loads the embargoed files', () => {
const utcDate = moment.utc().startOf('day').add(100, 'years').toDate()
const expectedDate = DateHelper.toDisplayFormat(utcDate)
const utcDate = moment.utc().startOf('day').add(100, 'years')
const expectedDate = utcDate.toISOString().split('T')[0]

cy.wrap(
DatasetHelper.createWithFiles(FileHelper.createMany(1)).then((dataset) =>
Expand Down

0 comments on commit 54be2c6

Please sign in to comment.