-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4778 from jeff-phillips-18/refactor-topology-utils
Fix for helm application filters, refactor topology utils
- Loading branch information
Showing
124 changed files
with
3,969 additions
and
2,102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pology/components/nodes/ResourceIcon.scss → ...e/src/components/svg/SvgResourceIcon.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...nts/nodes/__tests__/ResourceIcon.spec.tsx → ...ts/svg/__tests__/SvgResourceIcon.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import * as React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import { getKindStringAndAbbrivation, ResourceIcon } from '../ResourceIcon'; | ||
import { getKindStringAndAbbreviation, SvgResourceIcon } from '../SvgResourceIcon'; | ||
|
||
describe(getKindStringAndAbbrivation.name, () => { | ||
describe(getKindStringAndAbbreviation.name, () => { | ||
it('should return correct name and its abbrivation for the given string', () => { | ||
expect(getKindStringAndAbbrivation('DeploymentConfig')).toEqual({ | ||
expect(getKindStringAndAbbreviation('DeploymentConfig')).toEqual({ | ||
kindAbbr: 'DC', | ||
kindStr: 'DeploymentConfig', | ||
}); | ||
expect(getKindStringAndAbbrivation('Deployment')).toEqual({ | ||
expect(getKindStringAndAbbreviation('Deployment')).toEqual({ | ||
kindAbbr: 'D', | ||
kindStr: 'Deployment', | ||
}); | ||
expect(getKindStringAndAbbrivation('DaemonSet')).toEqual({ | ||
expect(getKindStringAndAbbreviation('DaemonSet')).toEqual({ | ||
kindAbbr: 'DS', | ||
kindStr: 'DaemonSet', | ||
}); | ||
}); | ||
}); | ||
|
||
describe(ResourceIcon.name, () => { | ||
describe(SvgResourceIcon.name, () => { | ||
it('should exists', () => { | ||
const wrapper = shallow(<ResourceIcon kind="Deplyoment" x={0} y={0} />); | ||
const wrapper = shallow(<SvgResourceIcon kind="Deplyoment" x={0} y={0} />); | ||
expect(wrapper.exists()).toBeTruthy(); | ||
}); | ||
|
||
it('should render correct kind abbrivation', () => { | ||
const wrapper = shallow(<ResourceIcon kind="Deplyoment" x={0} y={0} />); | ||
const wrapper = shallow(<SvgResourceIcon kind="Deplyoment" x={0} y={0} />); | ||
expect(wrapper.find('text').text()).toEqual('D'); | ||
}); | ||
}); |
Oops, something went wrong.