2021-03-11 19:13:27 +05:30
|
|
|
import { shallowMount } from '@vue/test-utils';
|
|
|
|
import LearnGitlabA from '~/pages/projects/learn_gitlab/components/learn_gitlab_a.vue';
|
2021-04-17 20:07:23 +05:30
|
|
|
import { testActions } from './mock_data';
|
2021-03-11 19:13:27 +05:30
|
|
|
|
|
|
|
describe('Learn GitLab Design A', () => {
|
|
|
|
let wrapper;
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
wrapper.destroy();
|
|
|
|
wrapper = null;
|
|
|
|
});
|
|
|
|
|
|
|
|
const createWrapper = () => {
|
2021-04-17 20:07:23 +05:30
|
|
|
wrapper = shallowMount(LearnGitlabA, { propsData: { actions: testActions } });
|
2021-03-11 19:13:27 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
it('should render the loading state', () => {
|
|
|
|
createWrapper();
|
|
|
|
|
|
|
|
expect(wrapper.element).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|