Sha256: 8b98d9bf4c61063d50218c1a4cf7aff07808d9ac8236b17c74d9fb327312164b

Contents?: true

Size: 291 Bytes

Versions: 18

Compression:

Stored size: 291 Bytes

Contents

import { describe, expect, it } from 'vitest'

import { getHumanizedRelativeTime } from '@/utils'

describe('getHumanizedRelativeTime', () => {
  it('returns a relative time in humanized format', () => {
    expect(getHumanizedRelativeTime('1970-01-01 00:00:00')).toContain('years')
  })
})

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mihari-5.7.0 frontend/tests/utils.spec.ts
mihari-5.6.2 frontend/tests/utils.spec.ts
mihari-5.6.1 frontend/tests/utils.spec.ts
mihari-5.6.0 frontend/tests/utils.spec.ts
mihari-5.5.0 frontend/tests/utils.spec.ts
mihari-5.4.9 frontend/tests/utils.spec.ts
mihari-5.4.8 frontend/tests/utils.spec.ts
mihari-5.4.7 frontend/tests/utils.spec.ts
mihari-5.4.6 frontend/tests/utils.spec.ts
mihari-5.4.5 frontend/tests/utils.spec.ts
mihari-5.4.4 frontend/tests/utils.spec.ts
mihari-5.4.3 frontend/tests/utils.spec.ts
mihari-5.4.2 frontend/tests/utils.spec.ts
mihari-5.4.1 frontend/tests/utils.spec.ts
mihari-5.4.0 frontend/tests/utils.spec.ts
mihari-5.3.2 frontend/tests/utils.spec.ts
mihari-5.3.1 frontend/tests/utils.spec.ts
mihari-5.3.0 frontend/tests/utils.spec.ts