Files
k8s-deploy/src/utilities/workflowAnnotationUtils.test.ts
T
2022-06-08 11:39:09 -04:00

18 lines
572 B
TypeScript

import { prefixObjectKeys } from "../utilities/workflowAnnotationUtils";
describe("WorkflowAnnotationUtils", () => {
describe("prefixObjectKeys", () => {
it("should prefix an object with a given prefix", () => {
const obj = {
foo: "bar",
baz: "qux",
};
const prefix = "prefix.";
const expected = {
"prefix.foo": "bar",
"prefix.baz": "qux",
};
expect(prefixObjectKeys(obj, prefix)).toEqual(expected);
});
});
});