Skip to content

Commit 445e93c

Browse files
committed
modified: unit-testing/studio/index.js
modified: unit-testing/studio/tests/launchcode.test.js
1 parent e50832f commit 445e93c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unit-testing/studio/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let launchcode = {
77
if (num % 2 == 0 && num % 3 == 0 && num % 5 == 0) {
88
return "LaunchCode Rocks!";
99
} else if (num % 2 == 0 && num % 5 == 0) {
10-
return "Launch Rocks!";
10+
return "Launch Rocks! (CRASH!!!!)";
1111
} else if (num % 3 == 0 && num % 5 == 0) {
1212
return "Code Rocks!";
1313
} else if (num % 2 == 0 && num % 3 == 0) {

unit-testing/studio/tests/launchcode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("Testing launchcode", function () {
4747
});
4848

4949
test("returns Launch Rocks! when divisible by 2 and 5", () => {
50-
expect(launchcode.launchOutput(20)).toBe("Launch Rocks!");
50+
expect(launchcode.launchOutput(20)).toBe("Launch Rocks! (CRASH!!!!)");
5151
});
5252

5353
test("returns LaunchCode Rocks! when divisible by 2, 3, and 5", () => {

0 commit comments

Comments
 (0)