Solution
This commit is contained in:
parent
54447a31dc
commit
e2298c6149
|
@ -1,5 +1,5 @@
|
|||
const reverseString = function() {
|
||||
|
||||
var reverseString = function(string) {
|
||||
return string.split("").reverse().join("");
|
||||
}
|
||||
|
||||
module.exports = reverseString
|
||||
|
|
|
@ -5,11 +5,11 @@ describe('reverseString', function() {
|
|||
expect(reverseString('hello')).toEqual('olleh');
|
||||
});
|
||||
|
||||
xit('reverses multiple words', function() {
|
||||
it('reverses multiple words', function() {
|
||||
expect(reverseString('hello there')).toEqual('ereht olleh')
|
||||
})
|
||||
|
||||
xit('works with numbers and punctuation', function() {
|
||||
it('works with numbers and punctuation', function() {
|
||||
expect(reverseString('123! abc!')).toEqual('!cba !321')
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue