Commit ed94bf25 authored by Lukas Eipert's avatar Lukas Eipert

Prettify two more spec files

We need to prettify those in order to prevent a red master
parent a223014a
...@@ -310,11 +310,12 @@ describe('updateListWipLimit', () => { ...@@ -310,11 +310,12 @@ describe('updateListWipLimit', () => {
return actions return actions
.updateListWipLimit({ state: { activeId }, getters }, { maxIssueCount, listId: activeId }) .updateListWipLimit({ state: { activeId }, getters }, { maxIssueCount, listId: activeId })
.then(() => { .then(() => {
expect( expect(axios.put).toHaveBeenCalledWith(
axios.put, `${boardsStoreEE.store.state.endpoints.listsEndpoint}/${activeId}`,
).toHaveBeenCalledWith(`${boardsStoreEE.store.state.endpoints.listsEndpoint}/${activeId}`, { {
list: { max_issue_count: maxIssueCount }, list: { max_issue_count: maxIssueCount },
}); },
);
}); });
}); });
......
...@@ -85,11 +85,12 @@ describe('Reset pipeline minutes button', () => { ...@@ -85,11 +85,12 @@ describe('Reset pipeline minutes button', () => {
return axios.waitForAll().then(() => { return axios.waitForAll().then(() => {
expect(axiosSpy).toHaveBeenCalled(); expect(axiosSpy).toHaveBeenCalled();
expect( expect($toast.show).toHaveBeenCalledWith(
$toast.show, 'There was an error resetting user pipeline minutes.',
).toHaveBeenCalledWith('There was an error resetting user pipeline minutes.', { {
type: 'error', type: 'error',
}); },
);
}); });
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment