reverse multiple words

This commit is contained in:
Mohammed Nabeel 2020-07-16 10:15:50 +03:00
parent e5220a42dc
commit c77d45581a
1 changed files with 13 additions and 13 deletions

View File

@ -1,18 +1,18 @@
const reverseString = require('./reverseString')
describe('reverseString', function() {
it('reverses single word', function() {
expect(reverseString('hello')).toEqual('olleh');
});
it('reverses single word', function() {
expect(reverseString('hello')).toEqual('olleh');
});
xit('reverses multiple words', function() {
expect(reverseString('hello there')).toEqual('ereht olleh')
})
it('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')
})
xit('works with blank strings', function() {
expect(reverseString('')).toEqual('')
})
});
xit('works with numbers and punctuation', function() {
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
xit('works with blank strings', function() {
expect(reverseString('')).toEqual('')
})
});