mean-stack-web-app
4.589
s
19
51
51
0
Questions
\server-side\tests\integration-tests\questions.js
/GET questions
\server-side\tests\integration-tests\questions.js
46ms
2
2
it should GET all questions
30ms
it should NOT GET all question with a missing or invalid JWT
16ms
/POST questions
\server-side\tests\integration-tests\questions.js
14ms
2
2
it should POST a question
2ms
it should NOT POST a question with a missing or invalid JWT
12ms
/GET/:id question
\server-side\tests\integration-tests\questions.js
55ms
3
3
it should GET a question by the given id
24ms
it should NOT GET a question with a missing or invalid JWT
12ms
it should NOT GET a question with a wrong id
19ms
/PATCH/:id question
\server-side\tests\integration-tests\questions.js
64ms
3
3
it should NOT PATCH a question with a wrong id
30ms
it should PATCH a question by the given id
21ms
it should NOT PATCH a question with a missing or invalid JWT
13ms
/DELETE/:id question
\server-side\tests\integration-tests\questions.js
50ms
3
3
it should DELETE a question by the given id
21ms
it should NOT DELETE a question with a wrong id
18ms
it should NOT DELETE a question with a missing or invalid JWT
11ms
Reviews
\server-side\tests\integration-tests\reviews.js
/GET reviews
\server-side\tests\integration-tests\reviews.js
12ms
1
1
it should get all reviews
12ms
/POST review
\server-side\tests\integration-tests\reviews.js
362ms
4
4
it should create a review
0ms
it should NOT create a review for unregistered user
20ms
it should NOT create a review with a missing or invalid JWT
11ms
it should make sure a student can't create a review for others
331ms
/PATCH:id review
\server-side\tests\integration-tests\reviews.js
734ms
6
6
it should PATCH a review with the given id
16ms
it should NOT PATCH a review with a wrong id
13ms
it should NOT PATCH a review whose user has none
336ms
it should NOT PATCH a review for unregistered user
11ms
it should NOT PATCH a review with a missing or invalid JWT
8ms
it should make sure a student can't update a review for others
350ms
/DELETE:id review
\server-side\tests\integration-tests\reviews.js
503ms
6
6
it should DELETE a review with the given id
24ms
it should NOT DELETE a review with a wrong id
11ms
it should NOT DELETE a review whose user has none
97ms
it should NOT DELETE a review for unregistered user
10ms
it should NOT DELETE a review with a missing or invalid JWT
8ms
it should make sure a student can't delete a review for others
353ms
Users
\server-side\tests\integration-tests\users..js
/login user
\server-side\tests\integration-tests\users..js
83ms
2
2
it should login a user
0ms
it should NOT login a user with a wrong password
83ms
/singup user
\server-side\tests\integration-tests\users..js
100ms
2
2
it should create a new user
91ms
it should NOT create a user if he/she already exists
9ms
/GET users
\server-side\tests\integration-tests\users..js
348ms
3
3
it should GET all users
12ms
it should NOT GET all user with a missing or invalid JWT
6ms
it should NOT GET all users if the request is sent by a student
330ms
/GET/:id user
\server-side\tests\integration-tests\users..js
361ms
4
4
it should GET a user by id
10ms
it should NOT GET a user by a wrong id
15ms
it should NOT GET a user with a missing or invalid JWT
8ms
it should check that a student can't get/see another student's profile
328ms
/PATCH/:id user
\server-side\tests\integration-tests\users..js
432ms
4
4
it should PATCH a user by id
90ms
it should NOT PATCH a user by a wrong id
10ms
it should NOT PATCH a user with a missing or invalid JWT
7ms
it should check that a student can't update another student's profile
325ms
/DELETE/:id user
\server-side\tests\integration-tests\users..js
449ms
4
4
it should DELETE a user by id
108ms
it should NOT DELETE a user by a wrong id
9ms
it should NOT DELETE a user with a missing or invalid JWT
7ms
it should check that a student can't delete another student's profile
325ms
/PATCH/:id/score
\server-side\tests\integration-tests\users..js
349ms
2
2
it should PATCH the user's score
21ms
it should check that a student can't update another student's score
328ms
mean-stack-web-app
Saturday, August 29, 2020 7:05pm
Show Passed
Show Failed
Show Pending
Show Skipped
Show Hooks
Failed
Failed
Always
Never
Context
Questions
/GET questions
/POST questions
/GET/:id question
/PATCH/:id question
/DELETE/:id question
Reviews
/GET reviews
/POST review
/PATCH:id review
/DELETE:id review
Users
/login user
/singup user
/GET users
/GET/:id user
/PATCH/:id user
/DELETE/:id user
/PATCH/:id/score