test(camelCase): Correct it should describes (#356)

This commit is contained in:
liu 2024-08-08 17:50:56 +08:00 committed by GitHub
parent 9c0f7b8210
commit 91f680a060
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,11 +6,11 @@ describe("camelCase", () => {
expect(camelCase("camelCase")).toEqual("camelCase");
});
it("should change space to underscore", async () => {
it("should change space to camel case", async () => {
expect(camelCase("some whitespace")).toEqual("someWhitespace");
});
it("should change hyphen to underscore", async () => {
it("should change hyphen to camel case", async () => {
expect(camelCase("hyphen-text")).toEqual("hyphenText");
});