diff --git a/submissions/habeebahSulayman/Javascript/PRODUCT PRICE WITH JS/index.html b/submissions/habeebahSulayman/Javascript/PRODUCT PRICE WITH JS/index.html
new file mode 100644
index 000000000..cd7691bd8
--- /dev/null
+++ b/submissions/habeebahSulayman/Javascript/PRODUCT PRICE WITH JS/index.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+ Document
+
+
+
+
+
diff --git a/submissions/habeebahSulayman/Javascript/PRODUCT PRICE WITH JS/index.js b/submissions/habeebahSulayman/Javascript/PRODUCT PRICE WITH JS/index.js
new file mode 100644
index 000000000..d9264db82
--- /dev/null
+++ b/submissions/habeebahSulayman/Javascript/PRODUCT PRICE WITH JS/index.js
@@ -0,0 +1,27 @@
+let productList = [
+ {
+ productName: `Infinix Hot 30i 6.6'" HD+, 4+4GB RAM /128GB ROM Android 12`,
+ imageUrl:
+ "https://ng.jumia.is/unsafe/fit-in/680x680/filters:fill(white)/product/94/9940072/1.jpg?3711",
+ productPrice: "#97,335",
+ },
+ {
+ productName: `Tecno Spark 10c 6.6" 4GB RAM/128GB ROM Android 13 Black`,
+ imageUrl:
+ "https://ng.jumia.is/unsafe/fit-in/680x680/filters:fill(white)/product/16/2938922/1.jpg?5082",
+ productPrice: "#94,900",
+ },
+ {
+ productName: `Oraimo 20,000MAH Type C & USB Port Powerbank
+ `,
+ imageUrl:
+ "https://ng.jumia.is/unsafe/fit-in/680x680/filters:fill(white)/product/25/314467/1.jpg?9409",
+ productPrice: "#16,800",
+ },
+];
+
+for (i = 0; i < productList.length; i++) {
+ const string = `${productList[i].productName} with ${productList[i].imageUrl} is sold for ${productList[i].productPrice} `;
+ // console.log(string);
+ document.write(string);
+}
diff --git a/submissions/habeebahSulayman/Javascript/SOFTWARE DEVELOPER CONDITIONALS/index.html b/submissions/habeebahSulayman/Javascript/SOFTWARE DEVELOPER CONDITIONALS/index.html
new file mode 100644
index 000000000..cd7691bd8
--- /dev/null
+++ b/submissions/habeebahSulayman/Javascript/SOFTWARE DEVELOPER CONDITIONALS/index.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+ Document
+
+
+
+
+
diff --git a/submissions/habeebahSulayman/Javascript/SOFTWARE DEVELOPER CONDITIONALS/index.js b/submissions/habeebahSulayman/Javascript/SOFTWARE DEVELOPER CONDITIONALS/index.js
new file mode 100644
index 000000000..e0d745bab
--- /dev/null
+++ b/submissions/habeebahSulayman/Javascript/SOFTWARE DEVELOPER CONDITIONALS/index.js
@@ -0,0 +1,20 @@
+let possitiveDifference = 123 - 7;
+for (let i = 1; i <= possitiveDifference; i++) {
+ // Check if the number is a multiple of 3
+ if (i % 3 === 0) {
+ document.write("Software");
+ document.write("");
+
+ // Check if the number is a multiple of 5
+ } else if (i % 5 === 0) {
+ document.write("Developer");
+ document.write("");
+
+ // Check if the number is a multiple of 3 and 5
+ } else if (i % 3 === 0 && i % 5 === 0) {
+ document.write("Software Developer");
+ } else {
+ document.write(i);
+ document.write("");
+ }
+}
diff --git a/tests/logfile.html b/tests/logfile.html
index 78a332f20..657103ab6 100644
--- a/tests/logfile.html
+++ b/tests/logfile.html
@@ -1,2 +1,2 @@
-Mochawesome Report
\ No newline at end of file
+Mochawesome Report
\ No newline at end of file
diff --git a/tests/logfile.json b/tests/logfile.json
index a1c77b258..c79092dce 100644
--- a/tests/logfile.json
+++ b/tests/logfile.json
@@ -1,8 +1,165 @@
{
"stats": {
- "tests": 3,
- "passes": 3,
+ "suites": 1,
+ "tests": 0,
+ "passes": 0,
+ "pending": 0,
"failures": 0,
- "owner": "bukkyOyetimehin"
+ "start": "2024-01-14T09:44:57.665Z",
+ "end": "2024-01-14T09:47:57.710Z",
+ "duration": 180045,
+ "testsRegistered": 2,
+ "passPercent": 0,
+ "pendingPercent": 0,
+ "other": 1,
+ "hasOther": true,
+ "skipped": 2,
+ "hasSkipped": true
+ },
+ "results": [
+ {
+ "uuid": "0ce0cc6b-4bd7-4c42-aec9-f15dbbb9857d",
+ "title": "",
+ "fullFile": "C:\\Users\\User\\Desktop\\Dufuna-CodeCamp-21\\tests\\product_price_printing\\test.js",
+ "file": "\\test.js",
+ "beforeHooks": [],
+ "afterHooks": [],
+ "tests": [],
+ "suites": [
+ {
+ "uuid": "6101d7dd-aafe-44ff-b061-ddc48af5cce6",
+ "title": "Printing product price",
+ "fullFile": "C:\\Users\\User\\Desktop\\Dufuna-CodeCamp-21\\tests\\product_price_printing\\test.js",
+ "file": "\\test.js",
+ "beforeHooks": [
+ {
+ "title": "\"before all\" hook: setupWebdriver for \"test case: check product details\"",
+ "fullTitle": "Printing product price \"before all\" hook: setupWebdriver for \"test case: check product details\"",
+ "timedOut": true,
+ "duration": 180020,
+ "state": "failed",
+ "speed": null,
+ "pass": false,
+ "fail": true,
+ "pending": false,
+ "context": null,
+ "code": "const file_url = `file://${file_path}`;\ndriver.get(file_url).then(done);",
+ "err": {
+ "message": "Error: Timeout of 180000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (C:\\Users\\User\\Desktop\\Dufuna-CodeCamp-21\\tests\\product_price_printing\\test.js)",
+ "estack": "Error: Timeout of 180000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (C:\\Users\\User\\Desktop\\Dufuna-CodeCamp-21\\tests\\product_price_printing\\test.js)\n at listOnTimeout (internal/timers.js:557:17)\n at processTimers (internal/timers.js:500:7)",
+ "diff": null
+ },
+ "uuid": "c6cf3649-7c71-4653-a868-25b0448056fb",
+ "parentUUID": "6101d7dd-aafe-44ff-b061-ddc48af5cce6",
+ "isHook": true,
+ "skipped": false
+ }
+ ],
+ "afterHooks": [
+ {
+ "title": "\"after all\" hook in \"Printing product price\"",
+ "fullTitle": "Printing product price \"after all\" hook in \"Printing product price\"",
+ "timedOut": false,
+ "duration": 1,
+ "state": null,
+ "speed": null,
+ "pass": false,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "driver.quit();",
+ "err": {},
+ "uuid": "44dcbef6-e1a3-4b72-96a1-1ad7fad2115f",
+ "parentUUID": "6101d7dd-aafe-44ff-b061-ddc48af5cce6",
+ "isHook": true,
+ "skipped": false
+ }
+ ],
+ "tests": [
+ {
+ "title": "test case: check product details",
+ "fullTitle": "Printing product price test case: check product details",
+ "timedOut": false,
+ "duration": 0,
+ "state": null,
+ "speed": null,
+ "pass": false,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "const element = await driver.findElement(By.css(\"body\"));\nconst text = await element.getText();\nassert.include(\n text,\n \"is sold for\",\n \"Ensure you print out the value in the right format\"\n);",
+ "err": {},
+ "uuid": "09308354-53b8-4ac5-b318-d79e85b78395",
+ "parentUUID": "6101d7dd-aafe-44ff-b061-ddc48af5cce6",
+ "isHook": false,
+ "skipped": true
+ },
+ {
+ "title": "test case: check three arrays are present",
+ "fullTitle": "Printing product price test case: check three arrays are present",
+ "timedOut": false,
+ "duration": 0,
+ "state": null,
+ "speed": null,
+ "pass": false,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "const element = await driver.findElement(By.css(\"body\"));\nconst text = await element.getText();\nconst count = text.split(\"is sold for\").length - 1;\nassert.equal(count, 3, \"Ensure the array contains 3 objects\");",
+ "err": {},
+ "uuid": "8677ee8f-390d-4815-a1b0-b1b989ce5bd5",
+ "parentUUID": "6101d7dd-aafe-44ff-b061-ddc48af5cce6",
+ "isHook": false,
+ "skipped": true
+ }
+ ],
+ "suites": [],
+ "passes": [],
+ "failures": [],
+ "pending": [],
+ "skipped": [
+ "09308354-53b8-4ac5-b318-d79e85b78395",
+ "8677ee8f-390d-4815-a1b0-b1b989ce5bd5"
+ ],
+ "duration": 0,
+ "root": false,
+ "rootEmpty": false,
+ "_timeout": 180000
+ }
+ ],
+ "passes": [],
+ "failures": [],
+ "pending": [],
+ "skipped": [],
+ "duration": 0,
+ "root": true,
+ "rootEmpty": true,
+ "_timeout": 2000
+ }
+ ],
+ "meta": {
+ "mocha": {
+ "version": "10.2.0"
+ },
+ "mochawesome": {
+ "options": {
+ "quiet": true,
+ "reportFilename": "logfile",
+ "saveHtml": true,
+ "saveJson": true,
+ "consoleReporter": "spec",
+ "useInlineDiffs": false,
+ "code": true
+ },
+ "version": "7.1.3"
+ },
+ "marge": {
+ "options": {
+ "reportDir": "C:/Users/User/Desktop/Dufuna-CodeCamp-21/tests/product_price_printing/../..//tests/",
+ "reportFilename": "logfile",
+ "quiet": "true"
+ },
+ "version": "6.2.0"
+ }
}
-}
+}
\ No newline at end of file