Skip to content

Change join route params to body #732

Change join route params to body

Change join route params to body #732

Triggered via pull request May 22, 2024 17:34
Status Failure
Total duration 3m 25s
Artifacts 1

run-tests.yml

on: pull_request
Matrix: tests
report-coverage
0s
report-coverage
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
src/presentation/http/router/join.test.ts > Join API > POST /join/:hash > Returns 406 when user is already in the team: src/presentation/http/router/join.test.ts#L51
AssertionError: expected { Object (message) } to strictly equal { message: 'User already in team' } - Expected + Received Object { - "message": "User already in team", + "message": "WHERE parameter \"invitation_hash\" has invalid \"undefined\" value", } ❯ src/presentation/http/router/join.test.ts:51:32
src/presentation/http/router/join.test.ts > Join API > POST /join/:hash > Returns 200 when user is added to the team: src/presentation/http/router/join.test.ts#L116
AssertionError: expected 406 to be 200 // Object.is equality - Expected + Received - 200 + 406 ❯ src/presentation/http/router/join.test.ts:116:36
tests (fix/schema)
Process completed with exit code 1.
tests (fix/schema)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests (main)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
coverage-main Expired
87.3 KB