import axios from 'axios';

import { mount } from '@vue/test-utils';
import { createLocalVue } from './helper';

import Vuex from 'vuex';
import directory from '../vuex/store/directory';

import UwCard from '../components/_templates/card.vue';
import EmployeeProfileCard from '../components/profile/employee-profile.vue';
import javerageDirectory from './mock_data/directory/javerage.json';

const localVue = createLocalVue(Vuex);

jest.mock('axios');

describe('Employee Profile Card', () => {
  let store;

  beforeEach(() => {
    store = new Vuex.Store({
      modules: {
        directory,
      },
      state: {
        user: {
          affiliations: { 
            all_employee: false,
            stud_employee: false,
            tacoma: false,
          }
        }
      },
    });
  });

  it('Verify computed properties', async () => {
    store.state.user.affiliations.all_employee = true;
    axios.get.mockResolvedValue({data: javerageDirectory, status: 200});
    const wrapper = mount(EmployeeProfileCard, {store, localVue});
    await new Promise(setImmediate);

    expect(wrapper.vm.showCard).toBe(true);
    expect(wrapper.vm.noFormsOfContact).toBe(false);
  });
  it('Verify computed properties', async () => {
    store.state.user.affiliations.stud_employee = true;
    axios.get.mockResolvedValue({data: javerageDirectory, status: 200});
    const wrapper = mount(EmployeeProfileCard, {store, localVue});
    await new Promise(setImmediate);

    expect(wrapper.vm.showCard).toBe(true);
    expect(wrapper.vm.noFormsOfContact).toBe(false);
  });
});
 
@@ -185,64 +185,8 @@
 ';%0A%0A
-import UwCard from '../components/_templates/card.vue';%0A
 impo
@@ -763,32 +763,45 @@
 puted properties
+ of employees
 ', async () =%3E %7B
@@ -1169,16 +1169,33 @@
 operties
+ of stud_employee
 ', async

refine description