Commit 32498cd7 authored by Phil Hughes's avatar Phil Hughes

fixed mutations spec

parent af42fa23
......@@ -9,8 +9,8 @@ import * as types from './mutation_types';
let eTagPoll;
export const clearEtagPoll = () => (eTagPoll = null);
export const stopPipelinePolling = () => eTagPoll.stop();
export const restartPipelinePolling = () => eTagPoll.restart();
export const stopPipelinePolling = () => eTagPoll && eTagPoll.stop();
export const restartPipelinePolling = () => eTagPoll && eTagPoll.restart();
export const requestLatestPipeline = ({ commit }) => commit(types.REQUEST_LATEST_PIPELINE);
export const receiveLatestPipelineError = ({ commit, dispatch }) => {
......
......@@ -66,6 +66,7 @@ describe('IDE pipelines mutations', () => {
expect(mockedState.stages).toEqual([
{
...stages[0],
dropdownPath: stages[0].dropdownPath,
id: 0,
isCollapsed: false,
isLoading: false,
......@@ -73,6 +74,7 @@ describe('IDE pipelines mutations', () => {
},
{
...stages[1],
dropdownPath: stages[1].dropdownPath,
id: 1,
isCollapsed: false,
isLoading: false,
......
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