mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-21 18:59:27 +08:00
Massive refactor (#165)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user