odin-default-js-exercises/reverseString/reverseString.spec.js

19 lines
522 B
JavaScript
Raw Normal View History

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