chore(note-history): Add user to history schema #825
run-tests.yml
on: pull_request
Matrix: tests
report-coverage
0s
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
Expired
|
96.9 KB |
|