From 2facfdaa5ba8dcbc79bbfe21be939a0f8d4e7f8d Mon Sep 17 00:00:00 2001 From: Paul Tirk Date: Wed, 1 Nov 2023 21:30:29 +0100 Subject: remove (now) unsuitable test for folder name/unread count in feed list header Signed-off-by: Paul Tirk --- tests/javascript/unit/components/routes/Feed.spec.ts | 12 ------------ tests/javascript/unit/components/routes/Folder.spec.ts | 11 ----------- 2 files changed, 23 deletions(-) (limited to 'tests') diff --git a/tests/javascript/unit/components/routes/Feed.spec.ts b/tests/javascript/unit/components/routes/Feed.spec.ts index 7c925af8a..2a55266a2 100644 --- a/tests/javascript/unit/components/routes/Feed.spec.ts +++ b/tests/javascript/unit/components/routes/Feed.spec.ts @@ -12,12 +12,6 @@ describe('Feed.vue', () => { localVue.use(Vuex) let wrapper: Wrapper - const mockFeed = { - id: 123, - title: 'feed name', - unreadCount: 2, - } - let store: Store beforeAll(() => { store = new Vuex.Store({ @@ -38,7 +32,6 @@ describe('Feed.vue', () => { actions: { }, getters: { - feeds: () => [mockFeed], }, }) @@ -59,11 +52,6 @@ describe('Feed.vue', () => { }) }) - it('should display feed title and unread count', () => { - expect(wrapper.find('.header').text()).toContain(mockFeed.title) - expect(wrapper.find('.header').text()).toContain(mockFeed.unreadCount.toString()) - }) - it('should get starred items from state', () => { expect((wrapper.findComponent(ContentTemplate)).props().items.length).toEqual(2) }) diff --git a/tests/javascript/unit/components/routes/Folder.spec.ts b/tests/javascript/unit/components/routes/Folder.spec.ts index 75c36db3e..e06b4c121 100644 --- a/tests/javascript/unit/components/routes/Folder.spec.ts +++ b/tests/javascript/unit/components/routes/Folder.spec.ts @@ -26,11 +26,6 @@ describe('Folder.vue', () => { folderId: 123, } - const mockFolder = { - id: 123, - name: 'folder name', - } - let store: Store beforeAll(() => { store = new Vuex.Store({ @@ -52,7 +47,6 @@ describe('Folder.vue', () => { }, getters: { feeds: () => [mockFeed, mockFeed2], - folders: () => [mockFolder], }, }) @@ -73,11 +67,6 @@ describe('Folder.vue', () => { }) }) - it('should display feed title and unread count', () => { - expect(wrapper.find('.header').text()).toContain(mockFolder.name) - expect(wrapper.find('.header').text()).toContain((mockFeed.unreadCount + mockFeed2.unreadCount).toString()) - }) - it('should get folder items from state', () => { expect((wrapper.findComponent(ContentTemplate)).props().items.length).toEqual(2) }) -- cgit v1.2.3