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')
    })
  })
})
