Skip to content

Commit ba5537d

Browse files
committed
Sprint-3 rewrite-tests-with jest 1-get-angle-type-test.js tests conducted
1 parent 5f2e946 commit ba5537d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,33 @@ test("should identify right angle (90°)", () => {
1313
// When the angle is less than 90 degrees,
1414
// Then the function should return "Acute angle"
1515

16+
test("should identify actue angle (40°)", () => {
17+
expect(getAngleType(40)).toEqual("Acute angle");
18+
});
19+
1620
// Case 3: Identify Obtuse Angles:
1721
// When the angle is greater than 90 degrees and less than 180 degrees,
1822
// Then the function should return "Obtuse angle"
1923

24+
test("should identify obtuse angle (120°)", () => {
25+
expect(getAngleType(120)).toEqual("Obtuse angle");
26+
});
27+
2028
// Case 4: Identify Straight Angles:
2129
// When the angle is exactly 180 degrees,
2230
// Then the function should return "Straight angle"
2331

32+
test("should identify straight angle (180°)", () => {
33+
expect(getAngleType(180)).toEqual("Straight angle");
34+
});
35+
2436
// Case 5: Identify Reflex Angles:
2537
// When the angle is greater than 180 degrees and less than 360 degrees,
2638
// Then the function should return "Reflex angle"
39+
40+
test("should identify reflex angle (240)", () => {
41+
expect(getAngleType(240)).toEqual("Reflex angle");
42+
});
43+
44+
45+
// Sprint-3 rewrite-tests-with jest 1-get-angle-type-test.js tests conducted

0 commit comments

Comments
 (0)