summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
})