We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a287e73 commit cdedbdbCopy full SHA for cdedbdb
tests/unit/composables/useFormatDateTime.spec.js
@@ -29,7 +29,7 @@ describe('useFormatRelativeTime composable', () => {
29
})
30
31
it('works with computed date object', () => {
32
- const formatted = useFormatRelativeTime(computed(() => time))
+ const formatted = useFormatRelativeTime(computed(() => new Date(time)))
33
expect(formatted.value).toBe('1 minute ago')
34
35
0 commit comments