Ocelot-Social/webapp/pages/settings/my-organizations.spec.js
2023-02-13 21:23:36 +01:00

33 lines
559 B
JavaScript

import { mount } from '@vue/test-utils'
import MyOrganizations from './my-organizations.vue'
const localVue = global.localVue
describe('my-organizations.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(MyOrganizations, {
mocks,
localVue,
})
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.element.tagName).toBe('ARTICLE')
})
})
})