summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Tirk <paultirk@paultirk.com>2023-11-01 21:30:29 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2023-11-07 20:01:54 +0100
commit2facfdaa5ba8dcbc79bbfe21be939a0f8d4e7f8d (patch)
tree435973d931e4bd3df98f2110549bca2b6fcb93bb /tests
parentf3ce43963b46381f0bdb47b8d09e4ca150a6a915 (diff)
remove (now) unsuitable test for folder name/unread count in feed list header
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/javascript/unit/components/routes/Feed.spec.ts12
-rw-r--r--tests/javascript/unit/components/routes/Folder.spec.ts11
2 files changed, 0 insertions, 23 deletions
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<Feed>
- const mockFeed = {
- id: 123,
- title: 'feed name',
- unreadCount: 2,
- }
-
let store: Store<any>
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<any>
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)
})