import { shallow, createLocalVue } from '@vue/test-utils';
import Vuex from 'vuex';

import Detail from './Detail.vue';

const localVue = createLocalVue();
localVue.use(Vuex);

describe('Event Detail.vue', () => {
  let wrapper, getters, store;

  beforeEach(() => {
    getters = {
      isAdmin: () => true
    }

    store = new Vuex.Store({
      getters
    });

    wrapper = shallow(Detail, {
      localVue,
      store,
      propsData: {
        event: {}
      }
    });
  });

  it('should create', () => {
    expect(wrapper.isVueInstance()).to.be.true;
  });

});

Test to catch compile issues
Test to catch compile issues
