utilyx
Version:
Modern utility helper library for cleaner, faster TypeScript/JavaScript development 🚀🔧
10 lines (9 loc) • 393 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const strings_1 = require("../strings");
test('camelToSnake should convert camelCase to snake_case', () => {
expect((0, strings_1.camelToSnake)('helloWorld')).toBe('hello_world');
});
test('capitalize should capitalize the first letter', () => {
expect((0, strings_1.capitalize)('hello')).toBe('Hello');
});