diff --git a/.results.json b/.results.json new file mode 100644 index 000000000..ab1da66d1 --- /dev/null +++ b/.results.json @@ -0,0 +1,115 @@ +{ + "stats": { + "suites": 4, + "tests": 6, + "passes": 5, + "pending": 0, + "failures": 1, + "start": "2024-03-23T19:16:02.594Z", + "end": "2024-03-23T19:16:03.457Z", + "duration": 863 + }, + "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": 2, + "currentRetry": 0, + "err": { + "message": "expected 'chelsea' to equal 'Chelsea'", + "showDiff": true, + "actual": "chelsea", + "expected": "Chelsea", + "stack": "AssertionError: expected 'chelsea' to equal 'Chelsea'\n at Context. (test/indexTest.js:21:45)\n at processImmediate (internal/timers.js:461:21)" + } + }, + { + "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": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js companyCeo is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + } + ], + "pending": [], + "failures": [ + { + "title": "is declared as equal to Chelsea", + "fullTitle": "index.js mostProfitableNeighborhood is declared as equal to Chelsea", + "duration": 2, + "currentRetry": 0, + "err": { + "message": "expected 'chelsea' to equal 'Chelsea'", + "showDiff": true, + "actual": "chelsea", + "expected": "Chelsea", + "stack": "AssertionError: expected 'chelsea' to equal 'Chelsea'\n at Context. (test/indexTest.js:21:45)\n at processImmediate (internal/timers.js:461:21)" + } + } + ], + "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 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": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js companyCeo is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..6f3a2913e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/index.js b/index.js index 0db694916..2f493807a 100644 --- a/index.js +++ b/index.js @@ -1 +1,6 @@ // Code your solution in this file! +const companyName = 'Scuber'; + +let mostProfitableNeighborhood = 'chelsea' + +let companyCeo = "Susan Smith" \ No newline at end of file