Rename folders with numbers and underscores

This commit is contained in:
Benjo Kho 2021-08-07 14:52:11 +08:00 committed by Rich Fromm
parent e17d12e25d
commit e84f36a594
40 changed files with 8 additions and 8 deletions

View File

@ -1,5 +0,0 @@
const reverseString = function(string) {
return string.split('').reverse().join('');
};
module.exports = reverseString;

View File

@ -0,0 +1,5 @@
const reverseString = function(str) {
let newStr = str.split("").reverse().join("");
};
module.exports = reverseString;

View File

@ -5,14 +5,14 @@ describe('reverseString', () => {
expect(reverseString('hello')).toEqual('olleh');
});
test.skip('reverses multiple words', () => {
test('reverses multiple words', () => {
expect(reverseString('hello there')).toEqual('ereht olleh')
})
test.skip('works with numbers and punctuation', () => {
test('works with numbers and punctuation', () => {
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
test.skip('works with blank strings', () => {
test('works with blank strings', () => {
expect(reverseString('')).toEqual('')
})
});