Skip to content

Commit 2163ec2

Browse files
committed
final touch format document for all file in rewrite-tests-with-jest
1 parent 331e4ff commit 2163ec2

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/1-get-angle-type.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ test("should identify right angle (90°)", () => {
1212
// Case 2: Identify Acute Angles:
1313
// When the angle is less than 90 degrees,
1414
// Then the function should return "Acute angle"
15-
test("should identify Acute Angles",()=>{
15+
test("should identify Acute Angles", () => {
1616
expect(getAngleType(70)).toEqual("Acute angle");
1717
});
1818

1919
// Case 3: Identify Obtuse Angles:
2020
// When the angle is greater than 90 degrees and less than 180 degrees,
2121
// Then the function should return "Obtuse angle"
22-
test("should identify Obtuse Angles",()=>{
22+
test("should identify Obtuse Angles", () => {
2323
expect(getAngleType(120)).toEqual("Obtuse angle");
2424
});
2525
// Case 4: Identify Straight Angles:
2626
// When the angle is exactly 180 degrees,
2727
// Then the function should return "Straight angle"
28-
test("should identify Straight Angles",()=>{
28+
test("should identify Straight Angles", () => {
2929
expect(getAngleType(180)).toEqual("Straight angle");
3030
});
3131
// Case 5: Identify Reflex Angles:
3232
// When the angle is greater than 180 degrees and less than 360 degrees,
3333
// Then the function should return "Reflex angle"
34-
test("should identify Reflex Angles",()=>{
34+
test("should identify Reflex Angles", () => {
3535
expect(getAngleType(240)).toEqual("Reflex angle");
3636
});

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ test("should return true for a proper fraction", () => {
77
});
88

99
// Case 2: Identify Improper Fractions:
10-
test("returns false for an improper fraction",()=>{
11-
expect(isProperFraction(5,2)).toEqual(false);
10+
test("returns false for an improper fraction", () => {
11+
expect(isProperFraction(5, 2)).toEqual(false);
1212
});
1313
// Case 3: Identify Negative Fractions:
1414
test("returns true for a negative proper fraction( absolute value of the numerator is less than the denominator)", () => {
@@ -17,4 +17,4 @@ test("returns true for a negative proper fraction( absolute value of the numerat
1717
// Case 4: Identify Equal Numerator and Denominator:
1818
test("returns false when numerator equals denominator", () => {
1919
expect(isProperFraction(9, 9)).toEqual(false);
20-
});
20+
});

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/3-get-card-value.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ test("should return 11 for Ace of Spades", () => {
88
});
99

1010
// Case 2: Handle Number Cards (2-10):
11-
test("should return the numeric value for number cards (2-10)",()=>{
11+
test("should return the numeric value for number cards (2-10)", () => {
1212
const fiveofHearts = getCardValue("5♥");
1313
expect(fiveofHearts).toEqual(5);
1414
const tenofHearts = getCardValue("10♥");
1515
expect(tenofHearts).toEqual(10);
1616
});
1717
// Case 3: Handle Face Cards (J, Q, K):
18-
test("should return 10 for face cards (J, Q, K)",()=>{
18+
test("should return 10 for face cards (J, Q, K)", () => {
1919
const kingofHearts = getCardValue("K♥");
2020
expect(kingofHearts).toEqual(10);
2121
const queenofHearts = getCardValue("Q♥");
2222
expect(queenofHearts).toEqual(10);
2323
});
2424
// Case 4: Handle Ace (A):
25-
test("should return 11 for an Ace",()=>{
26-
const aceofHearts = getCardValue("A♥");
27-
expect(aceofHearts).toEqual(11);
25+
test("should return 11 for an Ace", () => {
26+
const aceofHearts = getCardValue("A♥");
27+
expect(aceofHearts).toEqual(11);
2828
});
2929

3030
// Case 5: Handle Invalid Cards:
31-
test("should return invalid card rank",()=>{
31+
test("should return invalid card rank", () => {
3232
const twelveofHearts = getCardValue("12♥");
33-
expect(twelveofHearts).toEqual("Invalid card rank")
34-
})
33+
expect(twelveofHearts).toEqual("Invalid card rank");
34+
});

0 commit comments

Comments
 (0)