mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-15 19:15:34 +08:00
13 lines
381 B
TypeScript
13 lines
381 B
TypeScript
import { createInlineArray } from "./arrayUtils";
|
|
|
|
describe("array utilities", () => {
|
|
it("creates an inline array", () => {
|
|
const strings = ["str1", "str2", "str3"];
|
|
expect(createInlineArray(strings)).toBe(strings.join(","));
|
|
|
|
const string = "str1";
|
|
expect(createInlineArray([string])).toBe(string);
|
|
expect(createInlineArray(string)).toBe(string);
|
|
});
|
|
});
|