Skip to content

chore(note-history): Add user to history schema #825

chore(note-history): Add user to history schema

chore(note-history): Add user to history schema #825

Triggered via pull request July 31, 2024 19:02
Status Failure
Total duration 3m 35s
Artifacts 1

run-tests.yml

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

Annotations

2 errors and 2 warnings
src/presentation/http/router/note.test.ts > Note API > GET /note/:notePublicId/history/:historyId > Should return certain note history record by it's id: src/presentation/http/router/note.test.ts#L2069
AssertionError: expected { noteHistoryRecord: { id: 2, …(6) } } to strictly equal { noteHistoryRecord: { id: 2, …(6) } } - Expected + Received Object { "noteHistoryRecord": Object { "content": Object { "blocks": Array [ Object { "data": Object { "text": "text", }, "id": "mJDq8YbvqO", "type": "header", }, Object { "data": Object { "level": 2, "text": "fdgsfdgfdsg", }, "id": "DeL0QehzGe", "type": "paragraph", }, ], }, "createdAt": "2024-07-31T19:04:37.553Z", "id": 2, "noteId": "yaxRzSFBqZ", "tools": Array [ Object { "id": "1", "name": "header", }, Object { "id": "2", "name": "paragraph", }, ], "user": Object { - "name": "CodeX-DYJzyR", + "name": "CodeX-wg1Mm3", "photo": "", }, "userId": 1, }, } ❯ src/presentation/http/router/note.test.ts:2069:34
tests (add-user-to-history-schema)
Process completed with exit code 1.
tests (add-user-to-history-schema)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
tests (main)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Artifacts

Produced during runtime
Name Size
coverage-main
96.9 KB