odin-javascript-exercises/reverseString/reverseString.spec.js
2021-04-30 21:49:46 +12:00

18 lines
522 B
JavaScript

const reverseString = require('./reverseString')
describe('reverseString', () => {
test('reverses single word', () => {
expect(reverseString('hello')).toEqual('olleh');
});
test.skip('reverses multiple words', () => {
expect(reverseString('hello there')).toEqual('ereht olleh')
})
test.skip('works with numbers and punctuation', () => {
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
test.skip('works with blank strings', () => {
expect(reverseString('')).toEqual('')
})
});