Skip to content

Commit cdedbdb

Browse files
authored
fixup!
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent a287e73 commit cdedbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/composables/useFormatDateTime.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('useFormatRelativeTime composable', () => {
2929
})
3030

3131
it('works with computed date object', () => {
32-
const formatted = useFormatRelativeTime(computed(() => time))
32+
const formatted = useFormatRelativeTime(computed(() => new Date(time)))
3333
expect(formatted.value).toBe('1 minute ago')
3434
})
3535

0 commit comments

Comments
 (0)