From 70e75f845599e35f979b9168073d5133ff5b5394 Mon Sep 17 00:00:00 2001 From: Bassam Seid Date: Thu, 3 Mar 2022 16:45:43 +0000 Subject: [PATCH] first one done --- package-lock.json | 1 + spec/variables/assignment.spec.js | 2 ++ src/variables/assignment.js | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) 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 = {