fix(toCamelCaseKeys): improve toCamelCaseKeys type inference for uppercase keys #4204
Annotations
2 errors
|
codecov
Process completed with exit code 1.
|
|
src/object/toCamelCaseKeys.spec.ts > camelizeKeys > should lowercase only the first letter for regular PascalCase keys:
src/object/toCamelCaseKeys.spec.ts#L169
AssertionError: expected { userId: 1, apiToken: 'xxx' } to deeply equal { userID: 1, apiToken: 'xxx' }
- Expected
+ Received
Object {
"apiToken": "xxx",
- "userID": 1,
+ "userId": 1,
}
❯ src/object/toCamelCaseKeys.spec.ts:169:20
|