diff --git a/client/src/templates/Challenges/components/test-suite.css b/client/src/templates/Challenges/components/test-suite.css
index cdb38ac9be..95bcc7fa7b 100644
--- a/client/src/templates/Challenges/components/test-suite.css
+++ b/client/src/templates/Challenges/components/test-suite.css
@@ -5,6 +5,10 @@
margin: 15px 0;
}
+.challenge-test-suite code {
+ white-space: pre-wrap;
+}
+
.test-result {
display: flex;
width: 100%;
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements.md
index 477b21f612..874eb2c99a 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements.md
@@ -28,7 +28,7 @@ if (condition1) {
## Instructions
Write chained if
/else if
statements to fulfill the following conditions:
-num < 5
- return "Tiny"
num < 10
- return "Small"
num < 15
- return "Medium"
num < 20
- return "Large"
num >= 20
- return "Huge"
+num < 5
- return "Tiny"
num < 10
- return "Small"
num < 15
- return "Medium"
num < 20
- return "Large"
num >= 20
- return "Huge"
## Tests
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md
index d9a17dce15..5d170d587d 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md
@@ -30,7 +30,7 @@ tests:
testString: assert(!code.match(/\.?[\s\S]*?replace/g));
- text: urlSlug("Winter Is Coming")
should return "winter-is-coming"
.
testString: assert(urlSlug("Winter Is Coming") === "winter-is-coming");
- - text: urlSlug(" Winter Is Coming")
should return "winter-is-coming"
.
+ - text: urlSlug(" Winter Is Coming")
should return "winter-is-coming"
.
testString: assert(urlSlug(" Winter Is Coming") === "winter-is-coming");
- text: urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone")
should return "a-mind-needs-books-like-a-sword-needs-a-whetstone"
.
testString: assert(urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone") === "a-mind-needs-books-like-a-sword-needs-a-whetstone");
diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/combinations.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/combinations.md
index 29b2eebbc3..bf4afeb440 100644
--- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/combinations.md
+++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/combinations.md
@@ -38,7 +38,7 @@ tests:
testString: assert(typeof combinations === 'function');
- text: combinations(3, 5)
should return [[0, 1, 2], [0, 1, 3], [0, 1, 4], [0, 2, 3], [0, 2, 4], [0, 3, 4], [1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4]]
.
testString: assert.deepEqual(combinations(testInput1[0], testInput1[1]), testOutput1);
- - text: combinations(4, 6)
should return [[0,1,2,3], [0,1,2,4], [0,1,2,5], [0,1,3,4], [0,1,3,5], [0,1,4,5], [0,2,3,4], [0,2,3,5], [0,2,4,5], [0,3,4,5], [1,2,3,4], [1,2,3,5], [1,2,4,5], [1,3,4,5], [2,3,4,5]]
+ - text: combinations(4, 6)
should return [[0,1,2,3], [0,1,2,4], [0,1,2,5], [0,1,3,4], [0,1,3,5], [0,1,4,5], [0,2,3,4], [0,2,3,5], [0,2,4,5], [0,3,4,5], [1,2,3,4], [1,2,3,5], [1,2,4,5], [1,3,4,5], [2,3,4,5]]
testString: assert.deepEqual(combinations(testInput2[0], testInput2[1]), testOutput2);
```
diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md
index 04d6422527..bb9de478ba 100644
--- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md
+++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/hash-from-two-arrays.md
@@ -36,7 +36,7 @@ tests:
testString: assert.deepEqual(arrToObj(...testCases[3]), res[3]);
- text: 'arrToObj(["a", "b", "c", "d", "e"], [1, 2, 3, 4])
should return { "a": 1, "b": 2, "c": 3 , "d": 4, "e": undefined }
'
testString: assert.deepEqual(arrToObj(...testCases[4]), res[4]);
- - text: 'arrToObj(["a", "b", "c"], [1, 2, 3, 4, 5])
should return { "a": 1, "b": 2, "c": 3 }
'
+ - text: 'arrToObj(["a", "b", "c"], [1, 2, 3, 4, 5])
should return { "a": 1, "b": 2, "c": 3 }
'
testString: assert.deepEqual(arrToObj(...testCases[5]), res[5]);
```