Ocelot-Social/webapp/components/Empty/CallToAction/CtaUnblockAuthor.spec.js
Wolfgang Huß 558e964c83
feat(webapp): add reason and call to action on post view page if commenting is disabled (#8958)
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-10-10 19:21:07 +02:00

37 lines
673 B
JavaScript
Executable File

import { shallowMount } from '@vue/test-utils'
import Component from './CtaUnblockAuthor.vue'
const localVue = global.localVue
describe('CtaUnblockAuthor.vue', () => {
let propsData, wrapper, mocks
beforeEach(() => {
propsData = {
author: {
id: 'u-123',
slug: 'user-123',
name: 'User 123',
},
}
mocks = {
$t: jest.fn((t) => t),
}
})
const Wrapper = () => {
return shallowMount(Component, { propsData, localVue, mocks })
}
describe('shallowMount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper).toMatchSnapshot()
})
})
})