boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
19 lines (18 loc) • 654 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const lcFirst_1 = tslib_1.__importDefault(require("../lcFirst"));
describe('lcFirst', () => {
it('lowercase an uppercase start', () => {
expect((0, lcFirst_1.default)('John')).toBe('john');
});
it('lowercase a lowercase start', () => {
expect((0, lcFirst_1.default)('john')).toBe('john');
});
it('lowercase a lowercase single', () => {
expect((0, lcFirst_1.default)('J')).toBe('j');
});
it('lowercase an empty start', () => {
expect((0, lcFirst_1.default)('')).toBe('');
});
});