github.com/argoproj/argo-cd@v1.8.7/ui/src/app/applications/components/application-resource-tree/application-resource-tree.test.tsx (about) 1 import {describeNode, ResourceTreeNode} from "./application-resource-tree"; 2 3 test("describeNode.NoImages", () => { 4 expect(describeNode({ 5 kind: "my-kind", 6 name: "my-name", 7 namespace: "my-ns", 8 } as ResourceTreeNode)).toBe(`Kind: my-kind 9 Namespace: my-ns 10 Name: my-name`) 11 }); 12 13 test("describeNode.Images", () => { 14 expect(describeNode({ 15 kind: "my-kind", 16 name: "my-name", 17 namespace: "my-ns", 18 images: ['my-image:v1'], 19 } as ResourceTreeNode)).toBe(`Kind: my-kind 20 Namespace: my-ns 21 Name: my-name 22 Images: 23 - my-image:v1`) 24 });