Не подтверждена Коммит e8e9e5e7 создал по автору Artur Fedorov's avatar Artur Fedorov
Просмотр файлов

This MR removes direct data manipulation

As part of Vue 3 migration
overriding method behavior and
direct data manipulation
should be avoided
владелец 48b9dae0
......@@ -82,6 +82,7 @@ jest.mock('~/lib/utils/url_utility', () => ({
describe('GroupRunnersApp', () => {
let wrapper;
const showToast = jest.fn();
const findRunnerStats = () => wrapper.findComponent(RunnerStats);
const findRunnerActionsCell = () => wrapper.findComponent(RunnerActionsCell);
......@@ -123,6 +124,11 @@ describe('GroupRunnersApp', () => {
staleTimeoutSecs,
...provide,
},
mocks: {
$toast: {
show: showToast,
},
},
...options,
});
......@@ -250,8 +256,6 @@ describe('GroupRunnersApp', () => {
});
describe('Single runner row', () => {
let showToast;
const { webUrl, editUrl, node } = mockGroupRunnersEdges[0];
const { id: graphqlId, shortSha, jobExecutionStatus } = node;
const id = getIdFromGraphQLId(graphqlId);
......@@ -260,7 +264,6 @@ describe('GroupRunnersApp', () => {
beforeEach(async () => {
await createComponent({ mountFn: mountExtended });
showToast = jest.spyOn(wrapper.vm.$root.$toast, 'show');
});
it('Shows job status and links to jobs', () => {
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать