odin-javascript-exercises/reverseString/reverseString.spec.js
2017-12-15 12:56:14 -06:00

15 lines
427 B
JavaScript

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