UNPKG

ds-algo-study

Version:

Just experimenting with publishing a package

14 lines (10 loc) 298 B
const reverse = require('./index'); test('Reverse function exists', () => { expect(reverse).toBeDefined(); }); test('Reverse reverses a string', () => { expect(reverse('abcd')).toEqual('dcba'); }); test('Reverse reverses a string', () => { expect(reverse(' abcd')).toEqual('dcba '); });