2020-04-22 19:07:51 +05:30
|
|
|
import { shallowMount } from '@vue/test-utils';
|
|
|
|
import CommitItem from '~/diffs/components/commit_item.vue';
|
2021-03-11 19:13:27 +05:30
|
|
|
import CommitWidget from '~/diffs/components/commit_widget.vue';
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
describe('diffs/components/commit_widget', () => {
|
|
|
|
let wrapper;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
wrapper = shallowMount(CommitWidget, {
|
|
|
|
propsData: { commit: {} },
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('renders commit item', () => {
|
2022-10-11 01:57:18 +05:30
|
|
|
const commitElement = wrapper.findComponent(CommitItem);
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
expect(commitElement.exists()).toBe(true);
|
|
|
|
});
|
|
|
|
});
|