diff --git a/findTheOldest/findTheOldest.spec.js b/findTheOldest/findTheOldest.spec.js index 54ac8fe..06aec70 100644 --- a/findTheOldest/findTheOldest.spec.js +++ b/findTheOldest/findTheOldest.spec.js @@ -4,19 +4,19 @@ describe('findTheOldest', () => { test('finds the oldest person!', () => { const people = [ { - name: 'Carly', + name: "Carly", yearOfBirth: 1942, yearOfDeath: 1970, }, { - name: 'Ray', + name: "Ray", yearOfBirth: 1962, - yearOfDeath: 2011 + yearOfDeath: 2011, }, { - name: 'Jane', + name: "Jane", yearOfBirth: 1912, - yearOfDeath: 1941 + yearOfDeath: 1941, }, ] expect(findTheOldest(people).name).toBe('Ray'); @@ -24,18 +24,18 @@ describe('findTheOldest', () => { test.skip('finds the oldest person if someone is still living', () => { const people = [ { - name: 'Carly', + name: "Carly", yearOfBirth: 2018, }, { - name: 'Ray', + name: "Ray", yearOfBirth: 1962, - yearOfDeath: 2011 + yearOfDeath: 2011, }, { - name: 'Jane', + name: "Jane", yearOfBirth: 1912, - yearOfDeath: 1941 + yearOfDeath: 1941, }, ] expect(findTheOldest(people).name).toBe('Ray'); @@ -43,21 +43,20 @@ describe('findTheOldest', () => { test.skip('finds the oldest person if the OLDEST is still living', () => { const people = [ { - name: 'Carly', + name: "Carly", yearOfBirth: 1066, }, { - name: 'Ray', + name: "Ray", yearOfBirth: 1962, - yearOfDeath: 2011 + yearOfDeath: 2011, }, { - name: 'Jane', + name: "Jane", yearOfBirth: 1912, - yearOfDeath: 1941 + yearOfDeath: 1941, }, ] expect(findTheOldest(people).name).toBe('Carly'); }); - }); diff --git a/getTheTitles/getTheTitles.spec.js b/getTheTitles/getTheTitles.spec.js index d071af4..945d9f0 100644 --- a/getTheTitles/getTheTitles.spec.js +++ b/getTheTitles/getTheTitles.spec.js @@ -15,5 +15,4 @@ describe('getTheTitles', () => { test('gets titles', () => { expect(getTheTitles(books)).toEqual(['Book','Book2']); }); - }); diff --git a/palindromes/palindromes.js b/palindromes/palindromes.js index 02d48ff..4e83830 100644 --- a/palindromes/palindromes.js +++ b/palindromes/palindromes.js @@ -1,4 +1,4 @@ -const palindromes = function() { +const palindromes = function () {}; }; diff --git a/palindromes/palindromes.spec.js b/palindromes/palindromes.spec.js index 7920de6..2f239d3 100644 --- a/palindromes/palindromes.spec.js +++ b/palindromes/palindromes.spec.js @@ -19,5 +19,4 @@ describe('palindromes', () => { test.skip('doesn\'t just always return true', () => { expect(palindromes('ZZZZ car, a man, a maraca.')).toBe(false); }); - }); diff --git a/repeatString/repeatString.spec.js b/repeatString/repeatString.spec.js index b85429e..1bcee3c 100644 --- a/repeatString/repeatString.spec.js +++ b/repeatString/repeatString.spec.js @@ -24,7 +24,7 @@ describe('repeatString', () => { // DO NOT use Math.floor(Math.random() * 1000) in your code, // this test generates a random number, then passes it into your code with a function parameter. - // If this doesn't make sense, you should go read about functions here: https://www.theodinproject.com/courses/web-development-101/lessons/fundamentals-part-3 + // If this doesn't make sense, you should go read about functions here: https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/fundamentals-part-3 const number = Math.floor(Math.random() * 1000) /*The .match(/((hey))/g).length is a regex that will count the number of heys in the result, which if your function works correctly will equal the number that diff --git a/snakeCase/snakeCase.spec.js b/snakeCase/snakeCase.spec.js index a933bd1..1986b68 100644 --- a/snakeCase/snakeCase.spec.js +++ b/snakeCase/snakeCase.spec.js @@ -19,5 +19,4 @@ describe('snakeCase', () => { test.skip('works with WTF case', () => { expect(snakeCase('SnAkE..CaSe..Is..AwEsOmE')).toEqual('snake_case_is_awesome'); }); - });