Skip to content

Commit

Permalink
cleanup - remove unused time mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
vardanbansal-harness committed Feb 28, 2025
1 parent 1438ef2 commit f216e4f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/ui/src/utils/__tests__/TimeUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ describe('formatTimestamp', () => {
const fixedDate = new Date('2023-01-01T12:34:56.789Z')

beforeAll(() => {
vi.useFakeTimers()
vi.setSystemTime(fixedDate)

vi.spyOn(Intl, 'DateTimeFormat').mockImplementation(
Expand All @@ -63,11 +62,6 @@ describe('formatTimestamp', () => {
)
})

afterAll(() => {
vi.useRealTimers()
vi.restoreAllMocks()
})

it('should format epoch timestamp into "HH:mm:ss.SSS" format', () => {
const timestamp = fixedDate.getTime()
expect(formatTimestamp(timestamp)).toBe('12:34:56.789')
Expand Down

0 comments on commit f216e4f

Please sign in to comment.