diff --git a/exercise1/problem2/index.test.js b/exercise1/problem2/index.test.js index 0ff0e97..49fb5ad 100644 --- a/exercise1/problem2/index.test.js +++ b/exercise1/problem2/index.test.js @@ -6,7 +6,7 @@ describe("exercise1 - problem2", () => { { num: 3, lower: 1, upper: 9, expected: true }, { num: 6, lower: 1, upper: 6, expected: false }, { num: 4.5, lower: 3, upper: 8, expected: false }, - { num: -5, lower: 10, upper: 6, expected: true }, + { num: -5, lower: 10, upper: 6, expected: false }, { num: 4, lower: 0, upper: 0, expected: false }, { num: 10, lower: 9, upper: 11, expected: true }, { num: 6.3, lower: 2, upper: 6, expected: false }, diff --git a/exercise1/problem7/index.js b/exercise1/problem7/index.js index 9f6e6d4..f7741ba 100644 --- a/exercise1/problem7/index.js +++ b/exercise1/problem7/index.js @@ -1,5 +1,5 @@ -function isPrimitve() { +function isPrimitive() { // Your code } -module.exports = isPrimitve; +module.exports = isPrimitive; diff --git a/exercise1/problem7/index.test.js b/exercise1/problem7/index.test.js index 09c9667..ec29df4 100644 --- a/exercise1/problem7/index.test.js +++ b/exercise1/problem7/index.test.js @@ -15,7 +15,7 @@ describe("exercise1 - problem7", () => { { arg: () => null, expected: false }, { arg: {}, expected: false }, { arg: [1, 2, 3], expected: false }, - ])(".isPrimitive($arg)", ({ num, lower, upper, expected }) => { - expect(isPrimitive(num, lower, upper)).toBe(expected); + ])(".isPrimitive($arg)", ({ arg, expected }) => { + expect(isPrimitive(arg)).toBe(expected); }); });