|
1 | 1 | ``` |
2 | | -./codegrade_mvp.test.js (33.814 s) |
3 | | - ✓ [0] sanity check (342 ms) |
4 | | - server.js |
5 | | - projects endpoints |
6 | | - [GET] /api/projects |
7 | | - ✓ [1] can get all projects that exist in the table (206 ms) |
8 | | - ✓ [2] each project contains project_name, project_description and project_completed (as a boolean) (187 ms) |
9 | | - [POST] /api/projects |
10 | | - ✓ [3] can add a new project to the table (566 ms) |
11 | | - ✓ [4] responds with the newly created project with its project_completed as a boolean (241 ms) |
12 | | - ✓ [5] rejects projects lacking a project_name with an error status code (192 ms) |
13 | | - resources endpoints |
14 | | - [GET] /api/resources |
15 | | - ✓ [6] can get all resources in the table (175 ms) |
16 | | - [POST] /api/resources |
17 | | - ✓ [7] can add a new resource to the table (210 ms) |
18 | | - ✓ [8] responds with the newly created resource (184 ms) |
19 | | - ✓ [9] rejects a resource with an existing resource_name with an error status code (165 ms) |
20 | | - tasks endpoints |
21 | | - [GET] /api/tasks |
22 | | - ✓ [10] can get all tasks in the table (223 ms) |
23 | | - ✓ [11] each task contains task_notes and task_description and task_completed (as a boolean) (223 ms) |
24 | | - ✓ [12] each task contains the project_name and the project_description (221 ms) |
25 | | - [POST] /api/tasks |
26 | | - ✓ [13] can add a new task to the db (361 ms) |
27 | | - ✓ [14] responds with the newly created task with the task_completed as a boolean (280 ms) |
28 | | - ✓ [15] rejects a task lacking a task_description with an error status code (254 ms) |
29 | | - ✓ [16] rejects a task lacking a project_id with an error status code (252 ms) |
30 | | - ✓ [17] rejects a task containing an invalid project_id with an error status code (258 ms) |
31 | | - PASS ./codegrade_mvp.test.js (6.311 s) |
32 | | - ✓ [0] sanity check (169 ms) |
| 2 | +
|
| 3 | + at Object.<anonymous> (codegrade_mvp.test.js:14:12) |
| 4 | + PASS ./codegrade_mvp.test.js (20.545 s) |
| 5 | + ✓ [0] sanity check (289 ms) |
33 | 6 | server.js |
34 | 7 | projects endpoints |
35 | 8 | [GET] /api/projects |
36 | | - ✓ [1] can get all projects that exist in the table (150 ms) |
37 | | - ✓ [2] each project contains project_name, project_description and project_completed (as a boolean) (133 ms) |
| 9 | + ✓ [1] can get all projects that exist in the table (166 ms) |
| 10 | + ✓ [2] each project contains project_name, project_description and project_completed (as a boolean) (150 ms) |
38 | 11 | [POST] /api/projects |
39 | | - ✓ [3] can add a new project to the table (179 ms) |
40 | | - ✓ [4] responds with the newly created project with its project_completed as a boolean (163 ms) |
41 | | - ✓ [5] rejects projects lacking a project_name with an error status code (129 ms) |
| 12 | + ✓ [3] can add a new project to the table (356 ms) |
| 13 | + ✓ [4] responds with the newly created project with its project_completed as a boolean (187 ms) |
| 14 | + ✓ [5] rejects projects lacking a project_name with an error status code (127 ms) |
42 | 15 | resources endpoints |
43 | 16 | [GET] /api/resources |
44 | | - ✓ [6] can get all resources in the table (143 ms) |
| 17 | + ✓ [6] can get all resources in the table (161 ms) |
45 | 18 | [POST] /api/resources |
46 | | - ✓ [7] can add a new resource to the table (153 ms) |
47 | | - ✓ [8] responds with the newly created resource (128 ms) |
48 | | - ✓ [9] rejects a resource with an existing resource_name with an error status code (120 ms) |
| 19 | + ✓ [7] can add a new resource to the table (177 ms) |
| 20 | + ✓ [8] responds with the newly created resource (137 ms) |
| 21 | + ✓ [9] rejects a resource with an existing resource_name with an error status code (145 ms) |
49 | 22 | tasks endpoints |
50 | 23 | [GET] /api/tasks |
51 | | - ✓ [10] can get all tasks in the table (180 ms) |
52 | | - ✓ [11] each task contains task_notes and task_description and task_completed (as a boolean) (170 ms) |
53 | | - ✓ [12] each task contains the project_name and the project_description (165 ms) |
| 24 | + ✓ [10] can get all tasks in the table (240 ms) |
| 25 | + ✓ [11] each task contains task_notes and task_description and task_completed (as a boolean) (237 ms) |
| 26 | + ✓ [12] each task contains the project_name and the project_description (258 ms) |
54 | 27 | [POST] /api/tasks |
55 | | - ✓ [13] can add a new task to the db (267 ms) |
56 | | - ✓ [14] responds with the newly created task with the task_completed as a boolean (199 ms) |
57 | | - ✓ [15] rejects a task lacking a task_description with an error status code (194 ms) |
58 | | - ✓ [16] rejects a task lacking a project_id with an error status code (214 ms) |
59 | | - ✓ [17] rejects a task containing an invalid project_id with an error status code (223 ms) |
| 28 | + ✓ [13] can add a new task to the db (321 ms) |
| 29 | + ✓ [14] responds with the newly created task with the task_completed as a boolean (289 ms) |
| 30 | + ✓ [15] rejects a task lacking a task_description with an error status code (338 ms) |
| 31 | + ✓ [16] rejects a task lacking a project_id with an error status code (255 ms) |
| 32 | + ✓ [17] rejects a task containing an invalid project_id with an error status code (251 ms) |
60 | 33 |
|
61 | 34 | Test Suites: 1 passed, 1 total |
62 | 35 | Tests: 18 passed, 18 total |
63 | 36 | Snapshots: 0 total |
64 | | -Time: 6.342 s, estimated 34 s |
| 37 | +Time: 20.59 s |
65 | 38 |
|
66 | 39 | ``` |
| 40 | + |
| 41 | + |
0 commit comments