odin-javascript-exercises/reverseString/reverseString.spec.js
2017-12-29 13:52:53 +01:00

15 lines
No EOL
430 B
JavaScript

var reverseString = require('./reverseString')
describe('reverseString', function() {
it('reverses single word', function() {
expect(reverseString('hello')).toEqual('olleh');
});
xit('reverses multiple words', function() {
expect(reverseString('hello there')).toEqual('ereht olleh')
})
xit('works with numbers and punctuation', function() {
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
});