mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix frontend after rebasing the backend
This commit is contained in:
parent
16dc7328e7
commit
6bbaa78fa9
@ -36,9 +36,9 @@ describe('FilterMenu.vue', () => {
|
|||||||
expect(wrapper.emitted('changeFilterBubble')).toBeTruthy()
|
expect(wrapper.emitted('changeFilterBubble')).toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('toggles filterBubble.author.followed property', () => {
|
it('toggles filterBubble.author property', () => {
|
||||||
wrapper.find({ name: 'filter-by-followed-authors-only' }).trigger('click')
|
wrapper.find({ name: 'filter-by-followed-authors-only' }).trigger('click')
|
||||||
expect(wrapper.emitted('changeFilterBubble')[0]).toEqual([{ author: 'followed' }])
|
expect(wrapper.emitted('changeFilterBubble')[0]).toEqual([{ author: 'following' }])
|
||||||
wrapper.find({ name: 'filter-by-followed-authors-only' }).trigger('click')
|
wrapper.find({ name: 'filter-by-followed-authors-only' }).trigger('click')
|
||||||
expect(wrapper.emitted('changeFilterBubble')[1]).toEqual([{ author: 'all' }])
|
expect(wrapper.emitted('changeFilterBubble')[1]).toEqual([{ author: 'all' }])
|
||||||
})
|
})
|
||||||
|
|||||||
@ -33,12 +33,12 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
onlyFollowed() {
|
onlyFollowed() {
|
||||||
return this.filterBubble.author === 'followed'
|
return this.filterBubble.author === 'following'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggleOnlyFollowed() {
|
toggleOnlyFollowed() {
|
||||||
this.filterBubble.author = this.onlyFollowed ? 'all' : 'followed'
|
this.filterBubble.author = this.onlyFollowed ? 'all' : 'following'
|
||||||
this.$emit('changeFilterBubble', this.filterBubble)
|
this.$emit('changeFilterBubble', this.filterBubble)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user