diff options
author | Devlin Junker <devlin.junker@gmail.com> | 2023-08-24 17:12:27 -0700 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2023-08-26 07:48:18 +0200 |
commit | d4d20e91e5cdd801f837cbd296e1e798cbcfbf12 (patch) | |
tree | 5deef72826264c6506a3239d048c572b80a626f9 /tests/javascript/unit/components/FeedItemRow.spec.ts | |
parent | 8183510385bad408ea3f0136bd4a5487ba7df526 (diff) |
Add more unit tests and all passing
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to 'tests/javascript/unit/components/FeedItemRow.spec.ts')
-rw-r--r-- | tests/javascript/unit/components/FeedItemRow.spec.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/javascript/unit/components/FeedItemRow.spec.ts b/tests/javascript/unit/components/FeedItemRow.spec.ts index 14c2d6cca..dde0106a9 100644 --- a/tests/javascript/unit/components/FeedItemRow.spec.ts +++ b/tests/javascript/unit/components/FeedItemRow.spec.ts @@ -48,20 +48,14 @@ describe('FeedItemRow.vue', () => { expect(wrapper.vm.$data.keepUnread).toBeFalsy() }) - it('should expand when clicked', async () => { - await wrapper.find('.feed-item-row').trigger('click') - - // expect(wrapper.vm.$data.expanded).toBe(true) - }) - - it('should format date correctly', () => { + it('should format date to match locale', () => { const epoch = Date.now() // Provide an epoch timestamp const formattedDate = (wrapper.vm as any).formatDate(epoch) expect(formattedDate).toEqual(new Date(epoch).toLocaleString()) }) - it('should format datetime correctly', () => { + it('should format datetime to match international standard', () => { const epoch = Date.now() // Provide an epoch timestamp const formattedDate = (wrapper.vm as any).formatDatetime(epoch) |