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

15 lines
430 B
JavaScript
Raw Normal View History

2018-06-09 00:44:45 +00:00
let reverseString = require('./reverseString')
2017-08-17 21:19:17 +00:00
2017-12-29 12:52:53 +00:00
describe('reverseString', function() {
2017-08-17 21:19:17 +00:00
it('reverses single word', function() {
expect(reverseString('hello')).toEqual('olleh');
});
xit('reverses multiple words', function() {
2017-08-17 21:19:17 +00:00
expect(reverseString('hello there')).toEqual('ereht olleh')
})
xit('works with numbers and punctuation', function() {
2017-08-17 21:19:17 +00:00
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
});