fix broken karma specs due to removed function
This commit is contained in:
parent
06e7c15714
commit
bb79e3cbec
2 changed files with 2 additions and 28 deletions
|
@ -29,34 +29,6 @@ describe('EmptyState', () => {
|
|||
expect(component.currentState).toBe(component.states.gettingStarted);
|
||||
});
|
||||
|
||||
it('buttonPath returns settings path for the state "gettingStarted"', () => {
|
||||
const component = createComponent({
|
||||
selectedState: 'gettingStarted',
|
||||
settingsPath: statePaths.settingsPath,
|
||||
documentationPath: statePaths.documentationPath,
|
||||
emptyGettingStartedSvgPath: 'foo',
|
||||
emptyLoadingSvgPath: 'foo',
|
||||
emptyUnableToConnectSvgPath: 'foo',
|
||||
});
|
||||
|
||||
expect(component.buttonPath).toEqual(statePaths.settingsPath);
|
||||
expect(component.buttonPath).not.toEqual(statePaths.documentationPath);
|
||||
});
|
||||
|
||||
it('buttonPath returns documentation path for any of the other states', () => {
|
||||
const component = createComponent({
|
||||
selectedState: 'loading',
|
||||
settingsPath: statePaths.settingsPath,
|
||||
documentationPath: statePaths.documentationPath,
|
||||
emptyGettingStartedSvgPath: 'foo',
|
||||
emptyLoadingSvgPath: 'foo',
|
||||
emptyUnableToConnectSvgPath: 'foo',
|
||||
});
|
||||
|
||||
expect(component.buttonPath).toEqual(statePaths.documentationPath);
|
||||
expect(component.buttonPath).not.toEqual(statePaths.settingsPath);
|
||||
});
|
||||
|
||||
it('showButtonDescription returns a description with a link for the unableToConnect state', () => {
|
||||
const component = createComponent({
|
||||
selectedState: 'unableToConnect',
|
||||
|
@ -88,6 +60,7 @@ describe('EmptyState', () => {
|
|||
const component = createComponent({
|
||||
selectedState: 'gettingStarted',
|
||||
settingsPath: statePaths.settingsPath,
|
||||
clustersPath: statePaths.clustersPath,
|
||||
documentationPath: statePaths.documentationPath,
|
||||
emptyGettingStartedSvgPath: 'foo',
|
||||
emptyLoadingSvgPath: 'foo',
|
||||
|
|
|
@ -2471,6 +2471,7 @@ export const deploymentData = [
|
|||
|
||||
export const statePaths = {
|
||||
settingsPath: '/root/hello-prometheus/services/prometheus/edit',
|
||||
clustersPath: '/root/hello-prometheus/clusters',
|
||||
documentationPath: '/help/administration/monitoring/prometheus/index.md',
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue