Skip to content

Commit

Permalink
chore: Fix warnings in jest (#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
nithindavid committed May 13, 2021
1 parent 0e6cd69 commit 35f8d01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Expand Up @@ -3,11 +3,13 @@ import { createLocalVue, mount } from '@vue/test-utils';
import Vuex from 'vuex';
import VueI18n from 'vue-i18n';

import WootButton from 'dashboard/components/ui/WootButton';
import i18n from 'dashboard/i18n';

const localVue = createLocalVue();
localVue.use(Vuex);
localVue.use(VueI18n);
localVue.component('woot-button', WootButton);

const i18nConfig = new VueI18n({
locale: 'en',
Expand Down
Expand Up @@ -4,7 +4,7 @@ import SidemenuIcon from '../SidemenuIcon';
describe('SidemenuIcon', () => {
test('matches snapshot', () => {
const wrapper = mount(SidemenuIcon);
expect(wrapper.isVueInstance()).toBeTruthy();
expect(wrapper.vm).toBeTruthy();
expect(wrapper.element).toMatchSnapshot();
});
});
Expand Up @@ -11,7 +11,7 @@ describe('DateSeparator', () => {
$t: () => {},
},
});
expect(wrapper.isVueInstance()).toBeTruthy();
expect(wrapper.vm).toBeTruthy();
expect(wrapper.element).toMatchSnapshot();
});
});
2 changes: 1 addition & 1 deletion app/javascript/shared/components/specs/Spinner.spec.js
Expand Up @@ -4,7 +4,7 @@ import Spinner from '../Spinner';
describe('Spinner', () => {
test('matches snapshot', () => {
const wrapper = mount(Spinner);
expect(wrapper.isVueInstance()).toBeTruthy();
expect(wrapper.vm).toBeTruthy();
expect(wrapper.element).toMatchSnapshot();
});
});

0 comments on commit 35f8d01

Please sign in to comment.