14 lines
425 B
TypeScript
14 lines
425 B
TypeScript
|
|
import { getCamelCaseString } from "utils/AppsmithUtils";
|
||
|
|
|
||
|
|
describe("getCamelCaseString", () => {
|
||
|
|
it("Should return a string in camelCase", () => {
|
||
|
|
const inputs = ["abcd", "ab12cd", "开关", "😃 😃 😃"];
|
||
|
|
const expected = ["abcd", "ab12Cd", "", ""];
|
||
|
|
|
||
|
|
inputs.forEach((input, index) => {
|
||
|
|
const result = getCamelCaseString(input);
|
||
|
|
expect(result).toStrictEqual(expected[index]);
|
||
|
|
});
|
||
|
|
});
|
||
|
|
});
|