diff --git a/package-lock.json b/package-lock.json index d663c98a..6751df13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "js-fundamentals", "version": "1.0.0", "license": "ISC", "devDependencies": { diff --git a/spec/variables/assignment.spec.js b/spec/variables/assignment.spec.js index 265ae766..5515562d 100644 --- a/spec/variables/assignment.spec.js +++ b/spec/variables/assignment.spec.js @@ -5,6 +5,8 @@ describe("Variable Assignment:", () => { expect(a).toEqual(20) }) + const firstNumber = 20 + it("secondNumber is 42", () => { expect(b).toEqual(42) }) diff --git a/src/variables/assignment.js b/src/variables/assignment.js index 98f2e31c..50ad35c0 100644 --- a/src/variables/assignment.js +++ b/src/variables/assignment.js @@ -3,9 +3,9 @@ let firstNumber = 10 firstNumber = 0 // TODO: Set the value of firstNumber below so the tests pass - +firstNumber = 20 // TODO: Change the code below so that the tests pass -const secondNumber = 0 // edit this value +const secondNumber = 42 // edit this value // do not edit the exported object. module.exports = {