UNPKG

ds-algo-study

Version:

Just experimenting with publishing a package

18 lines (14 loc) 476 B
const capitalize = require('./index'); test('Capitalize is a function', () => { expect(typeof capitalize).toEqual('function'); }); test('capitalizes the first letter of every word in a sentence', () => { expect(capitalize('hi there, how is it going?')).toEqual( 'Hi There, How Is It Going?' ); }); test('capitalizes the first letter', () => { expect(capitalize('i love breakfast at bill miller bbq')).toEqual( 'I Love Breakfast At Bill Miller Bbq' ); });