From d49847e2530484a141d7cafdc4655dca93be33cf Mon Sep 17 00:00:00 2001 From: Mark Thiongo Date: Sat, 7 Dec 2024 09:57:49 +0300 Subject: [PATCH 1/2] Define variables to pass tests --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index 0db694916..d31ac14f3 100644 --- a/index.js +++ b/index.js @@ -1 +1,11 @@ // Code your solution in this file! +// Code your solution in this file! + +// 1. Define companyName as a constant +const companyName = "Scuber"; + +// 2. Define mostProfitableNeighborhood using let +let mostProfitableNeighborhood = "Chelsea"; + +// 3. Define companyCeo using let +let companyCeo = "Susan Smith"; From 7f51afff9ac045c04cd9289b2da9483909defacc Mon Sep 17 00:00:00 2001 From: Mark Thiongo Date: Sat, 7 Dec 2024 10:41:21 +0300 Subject: [PATCH 2/2] Pass all tests --- .results.json | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 .results.json diff --git a/.results.json b/.results.json new file mode 100644 index 000000000..4728348f5 --- /dev/null +++ b/.results.json @@ -0,0 +1,102 @@ +{ + "stats": { + "suites": 4, + "tests": 6, + "passes": 6, + "pending": 0, + "failures": 0, + "start": "2024-12-07T07:40:32.443Z", + "end": "2024-12-07T07:40:36.970Z", + "duration": 4527 + }, + "tests": [ + { + "title": "is set as Scuber", + "fullTitle": "index.js companyName is set as Scuber", + "duration": 2, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined as a const", + "fullTitle": "index.js companyName is defined as a const", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Chelsea", + "fullTitle": "index.js mostProfitableNeighborhood is declared as equal to Chelsea", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js mostProfitableNeighborhood is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Susan Smith", + "fullTitle": "index.js companyCeo is declared as equal to Susan Smith", + "duration": 1, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js companyCeo is defined using let", + "duration": 1, + "currentRetry": 0, + "err": {} + } + ], + "pending": [], + "failures": [], + "passes": [ + { + "title": "is set as Scuber", + "fullTitle": "index.js companyName is set as Scuber", + "duration": 2, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined as a const", + "fullTitle": "index.js companyName is defined as a const", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Chelsea", + "fullTitle": "index.js mostProfitableNeighborhood is declared as equal to Chelsea", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js mostProfitableNeighborhood is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Susan Smith", + "fullTitle": "index.js companyCeo is declared as equal to Susan Smith", + "duration": 1, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js companyCeo is defined using let", + "duration": 1, + "currentRetry": 0, + "err": {} + } + ] +} \ No newline at end of file