|
1 | 1 | *** Unit Test Error Report *** |
2 | 2 |
|
3 | | -Command failed: npx jest C:/Users/Rimha/Assignments-Cohort54/.dist/1-JavaScript/Week2/unit-tests/ex1-giveCompliment.test.js --colors --noStackTrace --json |
4 | | - FAIL .dist/1-JavaScript/Week2/unit-tests/ex1-giveCompliment.test.js |
| 3 | + PASS .dist/1-JavaScript/Week2/unit-tests/ex1-giveCompliment.test.js |
5 | 4 | js-wk2-ex1-giveCompliment |
6 | | - ❌ should exist and be executable (4 ms) |
7 | | - ✅ should have all TODO comments removed (1 ms) |
8 | | - ✅ `giveCompliment` should not contain unneeded console.log calls (1 ms) |
9 | | - ❌ should take a single parameter (1 ms) |
10 | | - ✅ should include a `compliments` array inside its function body (1 ms) |
11 | | - ❌ the `compliments` array should be initialized with 10 strings (1 ms) |
12 | | - ❌ should give a random compliment: You are `compliment`, `name`! |
13 | | - |
14 | | - ● js-wk2-ex1-giveCompliment › should exist and be executable |
15 | | - |
16 | | - expect(received).toBeDefined() |
17 | | - |
18 | | - Received: undefined |
19 | | - |
20 | | - ● js-wk2-ex1-giveCompliment › should take a single parameter |
21 | | - |
22 | | - expect(received).toHaveLength(expected) |
23 | | - |
24 | | - Matcher error: received value must have a length property whose value must be a number |
25 | | - |
26 | | - Received has value: undefined |
27 | | - |
28 | | - ● js-wk2-ex1-giveCompliment › the `compliments` array should be initialized with 10 strings |
29 | | - |
30 | | - expect(received).toHaveLength(expected) |
31 | | - |
32 | | - Expected length: 10 |
33 | | - Received length: 0 |
34 | | - Received array: [] |
35 | | - |
36 | | - ● js-wk2-ex1-giveCompliment › should give a random compliment: You are `compliment`, `name`! |
37 | | - |
38 | | - expect(received).toBeDefined() |
39 | | - |
40 | | - Received: undefined |
41 | | - |
42 | | -Test Suites: 1 failed, 1 total |
43 | | -Tests: 4 failed, 3 passed, 7 total |
| 5 | + ✅ should exist and be executable (1 ms) |
| 6 | + ✅ should have all TODO comments removed |
| 7 | + ✅ `giveCompliment` should not contain unneeded console.log calls |
| 8 | + ✅ should take a single parameter (1 ms) |
| 9 | + ✅ should include a `compliments` array inside its function body |
| 10 | + ✅ the `compliments` array should be initialized with 10 strings |
| 11 | + ✅ should give a random compliment: You are `compliment`, `name`! |
| 12 | + |
| 13 | +Test Suites: 1 passed, 1 total |
| 14 | +Tests: 7 passed, 7 total |
44 | 15 | Snapshots: 0 total |
45 | | -Time: 1.293 s |
| 16 | +Time: 0.715 s, estimated 1 s |
46 | 17 | Ran all test suites matching /C:\\Users\\Rimha\\Assignments-Cohort54\\.dist\\1-JavaScript\\Week2\\unit-tests\\ex1-giveCompliment.test.js/i. |
47 | 18 | No linting errors detected. |
48 | | -No spelling errors detected. |
| 19 | + |
| 20 | + |
| 21 | +*** Spell Checker Report *** |
| 22 | + |
| 23 | +1-JavaScript/Week2/assignment/ex1-giveCompliment.js:25:21 - Unknown word (Hadid) |
0 commit comments