|
1 | 1 | *** Unit Test Error Report *** |
2 | 2 |
|
3 | | -Command failed: npx jest C:/Users/Rimha/Assignments-Cohort54/.dist/1-JavaScript/Week2/unit-tests/ex2-dogYears.test.js --colors --noStackTrace --json |
4 | | - FAIL .dist/1-JavaScript/Week2/unit-tests/ex2-dogYears.test.js |
| 3 | + PASS .dist/1-JavaScript/Week2/unit-tests/ex2-dogYears.test.js |
5 | 4 | js-wk2-ex2-dogYears |
6 | | - ✅ should exist and be executable (3 ms) |
| 5 | + ✅ should exist and be executable (1 ms) |
7 | 6 | ✅ should have all TODO comments removed |
8 | | - ✅ `calculateDogAge` should not contain unneeded console.log calls (2 ms) |
| 7 | + ✅ `calculateDogAge` should not contain unneeded console.log calls |
9 | 8 | ✅ should take a single parameter (1 ms) |
10 | | - ❌ should give 7 dog years for 1 human year (3 ms) |
11 | | - ❌ should give 14 dog years for 2 human years |
12 | | - ❌ give 21 dog years for 3 human years (1 ms) |
| 9 | + ✅ should give 7 dog years for 1 human year |
| 10 | + ✅ should give 14 dog years for 2 human years (1 ms) |
| 11 | + ✅ give 21 dog years for 3 human years |
13 | 12 |
|
14 | | - ● js-wk2-ex2-dogYears › should give 7 dog years for 1 human year |
15 | | - |
16 | | - expect(received).toBe(expected) // Object.is equality |
17 | | - |
18 | | - Expected: "Your doggie is 7 years old in dog years!" |
19 | | - Received: 7 |
20 | | - |
21 | | - ● js-wk2-ex2-dogYears › should give 14 dog years for 2 human years |
22 | | - |
23 | | - expect(received).toBe(expected) // Object.is equality |
24 | | - |
25 | | - Expected: "Your doggie is 14 years old in dog years!" |
26 | | - Received: 14 |
27 | | - |
28 | | - ● js-wk2-ex2-dogYears › give 21 dog years for 3 human years |
29 | | - |
30 | | - expect(received).toBe(expected) // Object.is equality |
31 | | - |
32 | | - Expected: "Your doggie is 21 years old in dog years!" |
33 | | - Received: 21 |
34 | | - |
35 | | -Test Suites: 1 failed, 1 total |
36 | | -Tests: 3 failed, 4 passed, 7 total |
| 13 | +Test Suites: 1 passed, 1 total |
| 14 | +Tests: 7 passed, 7 total |
37 | 15 | Snapshots: 0 total |
38 | | -Time: 1.221 s |
| 16 | +Time: 0.733 s, estimated 1 s |
39 | 17 | Ran all test suites matching /C:\\Users\\Rimha\\Assignments-Cohort54\\.dist\\1-JavaScript\\Week2\\unit-tests\\ex2-dogYears.test.js/i. |
40 | 18 | No linting errors detected. |
41 | 19 | No spelling errors detected. |
0 commit comments