diff --git a/01 helloWorld/README.md b/01_helloWorld/README.md similarity index 100% rename from 01 helloWorld/README.md rename to 01_helloWorld/README.md diff --git a/01 helloWorld/helloWorld.js b/01_helloWorld/helloWorld.js similarity index 100% rename from 01 helloWorld/helloWorld.js rename to 01_helloWorld/helloWorld.js diff --git a/01 helloWorld/helloWorld.spec.js b/01_helloWorld/helloWorld.spec.js similarity index 100% rename from 01 helloWorld/helloWorld.spec.js rename to 01_helloWorld/helloWorld.spec.js diff --git a/02 repeatString/README.md b/02_repeatString/README.md similarity index 100% rename from 02 repeatString/README.md rename to 02_repeatString/README.md diff --git a/02 repeatString/repeatString.js b/02_repeatString/repeatString.js similarity index 100% rename from 02 repeatString/repeatString.js rename to 02_repeatString/repeatString.js diff --git a/02 repeatString/repeatString.spec.js b/02_repeatString/repeatString.spec.js similarity index 100% rename from 02 repeatString/repeatString.spec.js rename to 02_repeatString/repeatString.spec.js diff --git a/03 reverseString/reverseString.js b/03 reverseString/reverseString.js deleted file mode 100644 index c5ebf91..0000000 --- a/03 reverseString/reverseString.js +++ /dev/null @@ -1,5 +0,0 @@ -const reverseString = function() { - -}; - -module.exports = reverseString; diff --git a/03 reverseString/README.md b/03_reverseString/README.md similarity index 100% rename from 03 reverseString/README.md rename to 03_reverseString/README.md diff --git a/03_reverseString/reverseString.js b/03_reverseString/reverseString.js new file mode 100644 index 0000000..ad79ce0 --- /dev/null +++ b/03_reverseString/reverseString.js @@ -0,0 +1,5 @@ +const reverseString = function(str) { + let newStr = str.split("").reverse().join(""); +}; + +module.exports = reverseString; diff --git a/03 reverseString/reverseString.spec.js b/03_reverseString/reverseString.spec.js similarity index 70% rename from 03 reverseString/reverseString.spec.js rename to 03_reverseString/reverseString.spec.js index 8adb887..b51c50e 100644 --- a/03 reverseString/reverseString.spec.js +++ b/03_reverseString/reverseString.spec.js @@ -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('') }) }); diff --git a/04 removeFromArray/README.md b/04_removeFromArray/README.md similarity index 100% rename from 04 removeFromArray/README.md rename to 04_removeFromArray/README.md diff --git a/04 removeFromArray/removeFromArray.js b/04_removeFromArray/removeFromArray.js similarity index 100% rename from 04 removeFromArray/removeFromArray.js rename to 04_removeFromArray/removeFromArray.js diff --git a/04 removeFromArray/removeFromArray.spec.js b/04_removeFromArray/removeFromArray.spec.js similarity index 100% rename from 04 removeFromArray/removeFromArray.spec.js rename to 04_removeFromArray/removeFromArray.spec.js diff --git a/05 sumAll/README.md b/05_sumAll/README.md similarity index 100% rename from 05 sumAll/README.md rename to 05_sumAll/README.md diff --git a/05 sumAll/sumAll.js b/05_sumAll/sumAll.js similarity index 100% rename from 05 sumAll/sumAll.js rename to 05_sumAll/sumAll.js diff --git a/05 sumAll/sumAll.spec.js b/05_sumAll/sumAll.spec.js similarity index 100% rename from 05 sumAll/sumAll.spec.js rename to 05_sumAll/sumAll.spec.js diff --git a/06 leapYears/README.md b/06_leapYears/README.md similarity index 100% rename from 06 leapYears/README.md rename to 06_leapYears/README.md diff --git a/06 leapYears/leapYears.js b/06_leapYears/leapYears.js similarity index 100% rename from 06 leapYears/leapYears.js rename to 06_leapYears/leapYears.js diff --git a/06 leapYears/leapYears.spec.js b/06_leapYears/leapYears.spec.js similarity index 100% rename from 06 leapYears/leapYears.spec.js rename to 06_leapYears/leapYears.spec.js diff --git a/07 tempConversion/README.md b/07_tempConversion/README.md similarity index 100% rename from 07 tempConversion/README.md rename to 07_tempConversion/README.md diff --git a/07 tempConversion/tempConversion.js b/07_tempConversion/tempConversion.js similarity index 100% rename from 07 tempConversion/tempConversion.js rename to 07_tempConversion/tempConversion.js diff --git a/07 tempConversion/tempConversion.spec.js b/07_tempConversion/tempConversion.spec.js similarity index 100% rename from 07 tempConversion/tempConversion.spec.js rename to 07_tempConversion/tempConversion.spec.js diff --git a/08 calculator/README.md b/08_calculator/README.md similarity index 100% rename from 08 calculator/README.md rename to 08_calculator/README.md diff --git a/08 calculator/calculator.js b/08_calculator/calculator.js similarity index 100% rename from 08 calculator/calculator.js rename to 08_calculator/calculator.js diff --git a/08 calculator/calculator.spec.js b/08_calculator/calculator.spec.js similarity index 100% rename from 08 calculator/calculator.spec.js rename to 08_calculator/calculator.spec.js diff --git a/09 palindromes/README.md b/09_palindromes/README.md similarity index 100% rename from 09 palindromes/README.md rename to 09_palindromes/README.md diff --git a/09 palindromes/palindromes.js b/09_palindromes/palindromes.js similarity index 100% rename from 09 palindromes/palindromes.js rename to 09_palindromes/palindromes.js diff --git a/09 palindromes/palindromes.spec.js b/09_palindromes/palindromes.spec.js similarity index 100% rename from 09 palindromes/palindromes.spec.js rename to 09_palindromes/palindromes.spec.js diff --git a/10 fibonacci/README.md b/10_fibonacci/README.md similarity index 100% rename from 10 fibonacci/README.md rename to 10_fibonacci/README.md diff --git a/10 fibonacci/fibonacci.js b/10_fibonacci/fibonacci.js similarity index 100% rename from 10 fibonacci/fibonacci.js rename to 10_fibonacci/fibonacci.js diff --git a/10 fibonacci/fibonacci.spec.js b/10_fibonacci/fibonacci.spec.js similarity index 100% rename from 10 fibonacci/fibonacci.spec.js rename to 10_fibonacci/fibonacci.spec.js diff --git a/11 getTheTitles/README.md b/11_getTheTitles/README.md similarity index 100% rename from 11 getTheTitles/README.md rename to 11_getTheTitles/README.md diff --git a/11 getTheTitles/getTheTitles.js b/11_getTheTitles/getTheTitles.js similarity index 100% rename from 11 getTheTitles/getTheTitles.js rename to 11_getTheTitles/getTheTitles.js diff --git a/11 getTheTitles/getTheTitles.spec.js b/11_getTheTitles/getTheTitles.spec.js similarity index 100% rename from 11 getTheTitles/getTheTitles.spec.js rename to 11_getTheTitles/getTheTitles.spec.js diff --git a/12 findTheOldest/README.md b/12_findTheOldest/README.md similarity index 100% rename from 12 findTheOldest/README.md rename to 12_findTheOldest/README.md diff --git a/12 findTheOldest/findTheOldest.js b/12_findTheOldest/findTheOldest.js similarity index 100% rename from 12 findTheOldest/findTheOldest.js rename to 12_findTheOldest/findTheOldest.js diff --git a/12 findTheOldest/findTheOldest.spec.js b/12_findTheOldest/findTheOldest.spec.js similarity index 100% rename from 12 findTheOldest/findTheOldest.spec.js rename to 12_findTheOldest/findTheOldest.spec.js diff --git a/13 caesar/README.md b/13_caesar/README.md similarity index 100% rename from 13 caesar/README.md rename to 13_caesar/README.md diff --git a/13 caesar/caesar.js b/13_caesar/caesar.js similarity index 100% rename from 13 caesar/caesar.js rename to 13_caesar/caesar.js diff --git a/13 caesar/caesar.spec.js b/13_caesar/caesar.spec.js similarity index 100% rename from 13 caesar/caesar.spec.js rename to 13_caesar/caesar.spec.js