Skip to content

Commit

Permalink
Update packages/desktop-gui/cypress/integration/utils_spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane authored Oct 26, 2020
1 parent 9ed041a commit 69d1dc7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/desktop-gui/cypress/integration/utils_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ describe('durationFormatted', function () {
describe('getFormattedTimeFromNow', function () {
it('displays time a minute ago', () => {
const now = dayjs()

const dateInPast = now.subtract(1, 'minute').toISOString()

cy.clock(now.valueOf())

expect(utils.getFormattedTimeFromNow(dateInPast)).to.eq('a min ago')
})
})
Expand Down

0 comments on commit 69d1dc7

Please sign in to comment.