Skip to content

Commit dcef96b

Browse files
refactored the debug file and installed the jest package
1 parent de6889c commit dcef96b

5 files changed

Lines changed: 386 additions & 282 deletions

File tree

‎Sprint-2/debug/address.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const address = {
1212
postcode: "XYZ 123",
1313
};
1414

15-
console.log(`My house number is ${address[0]}`);
15+
console.log(`My house number is ${address.houseNumber}`);

‎Sprint-2/debug/author.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ const author = {
1111
alive: true,
1212
};
1313

14-
for (const value of author) {
14+
for (const value in author) {
1515
console.log(value);
1616
}

‎Sprint-2/debug/recipe.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const recipe = {
1212

1313
console.log(`${recipe.title} serves ${recipe.serves}
1414
ingredients:
15-
${recipe}`);
15+
${recipe.ingredients}`);

0 commit comments

Comments
 (0)