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

15 lines
428 B
JavaScript
Raw Normal View History

2017-08-17 21:19:17 +00:00
var reverseString = require('./reverseString')
describe('Hello World', 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')
})
});