Skip to content

Commit

Permalink
remove (now) unsuitable test for folder name/unread count in feed lis…
Browse files Browse the repository at this point in the history
…t header

Signed-off-by: Paul Tirk <paultirk@paultirk.com>
  • Loading branch information
powerpaul17 authored and SMillerDev committed Nov 7, 2023
1 parent f3ce439 commit 2facfda
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions tests/javascript/unit/components/routes/Feed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -38,7 +32,6 @@ describe('Feed.vue', () => {
actions: {
},
getters: {
feeds: () => [mockFeed],
},
})

Expand All @@ -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)
})
Expand Down
11 changes: 0 additions & 11 deletions tests/javascript/unit/components/routes/Folder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -52,7 +47,6 @@ describe('Folder.vue', () => {
},
getters: {
feeds: () => [mockFeed, mockFeed2],
folders: () => [mockFolder],
},
})

Expand All @@ -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)
})
Expand Down

0 comments on commit 2facfda

Please sign in to comment.