2018-08-07 03:23:28 -07:00
|
|
|
const reverseString = require('./reverseString')
|
2017-08-17 14:19:17 -07:00
|
|
|
|
2017-12-29 04:52:53 -08:00
|
|
|
describe('reverseString', function() {
|
2017-08-17 14:19:17 -07:00
|
|
|
it('reverses single word', function() {
|
|
|
|
expect(reverseString('hello')).toEqual('olleh');
|
|
|
|
});
|
|
|
|
|
2017-11-24 12:23:16 -08:00
|
|
|
xit('reverses multiple words', function() {
|
2017-08-17 14:19:17 -07:00
|
|
|
expect(reverseString('hello there')).toEqual('ereht olleh')
|
|
|
|
})
|
|
|
|
|
2017-11-24 12:23:16 -08:00
|
|
|
xit('works with numbers and punctuation', function() {
|
2017-08-17 14:19:17 -07:00
|
|
|
expect(reverseString('123! abc!')).toEqual('!cba !321')
|
|
|
|
})
|
2020-05-07 23:56:55 -07:00
|
|
|
xit('works with blank strings', function() {
|
|
|
|
expect(reverseString('')).toEqual('')
|
|
|
|
})
|
2018-08-07 03:23:28 -07:00
|
|
|
});
|