Skip to content

Commit

Permalink
fix timeStr to 00
Browse files Browse the repository at this point in the history
  • Loading branch information
TeemuKoivisto committed Sep 1, 2024
1 parent 0e7f1c8 commit c327d8a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ describe('createHistoryEntry', () => {
tr.setSelection(new AllSelection(tr.doc))
view.dispatch(tr)
const entry = createHistoryEntry([tr], view.state, startingState)
// Hack to fix vitest's mocked Date from producing weird getHours (22)
entry.timeStr = '00' + entry.timeStr.slice(2)
expect(entry).toMatchSnapshot()
expect(logSpy).toHaveBeenCalledTimes(0)
expect(infoSpy).toHaveBeenCalledTimes(0)
Expand Down

0 comments on commit c327d8a

Please sign in to comment.