AppMenu.spec.js 381 B

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