Skip to content

Commit

Permalink
Make getResource a first class function on Dev Console topology items.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-phillips-18 committed Jul 15, 2020
1 parent 238dce6 commit 42c53ea
Show file tree
Hide file tree
Showing 66 changed files with 727 additions and 691 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,14 @@ describe('TransformResourceData', () => {
});

it('should return only pods and not replication controllers for a given resource', () => {
const transformedData = createPodItems(MockResources);
const transformedData = createPodItems(MockResources.pods.data, MockResources);
transformedData.forEach((element) => {
expect(element).toHaveProperties(podKeys);
});
});

it('should return pods and not replication controllers for a given resource', () => {
const transformedData = createPodItems(MockResources);
const transformedData = createOverviewItemsForType('pods', MockResources);
transformedData.forEach((element) => {
expect(element).not.toHaveProperties([...podKeys, 'current', 'previous']);
});
Expand Down

0 comments on commit 42c53ea

Please sign in to comment.