mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
NotificationList.vue with default as afunction tested
This commit is contained in:
parent
72addd1336
commit
6e5e15097e
@ -81,4 +81,23 @@ describe('NotificationList.vue', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('shallowMount with no notifications', () => {
|
||||
const Wrapper = () => {
|
||||
return shallowMount(NotificationList, {
|
||||
propsData: {},
|
||||
mocks,
|
||||
store,
|
||||
localVue,
|
||||
})
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = Wrapper()
|
||||
})
|
||||
|
||||
it('renders Notification.vue zero times', () => {
|
||||
expect(wrapper.findAll(Notification)).toHaveLength(0)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -20,7 +20,7 @@ export default {
|
||||
props: {
|
||||
notifications: {
|
||||
type: Array,
|
||||
default: [],
|
||||
default: () => [],
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user