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