AppMenu.spec.js 384 B

1234567891011121314
  1. import { expect } from 'chai';
  2. import { shallowMount } from '@vue/test-utils';
  3. import AppMenu from '@/menu/AppMenu.vue';
  4. // const wrapper =
  5. shallowMount(AppMenu);
  6. const defaultData = AppMenu.data();
  7. describe('AppMenu.vue', () => {
  8. it('displays login page by default', () => {
  9. expect(defaultData.menuPage)
  10. .to.be.a('string')
  11. .that.is.equals('menu-login');
  12. });
  13. });