Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kloV148 committed Dec 5, 2023
1 parent f7347ef commit f2331c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/presentation/http/router/note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Note API', () => {
'isPublic': true,
'id': 1,
'noteId': 1,
'invitationHash': 'Hzh2hy4igf',
},
},
'accessRights': {
Expand Down
4 changes: 3 additions & 1 deletion src/presentation/http/router/noteSettings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('NoteSettings API', () => {
'isPublic': true,
'id': 2,
'noteId': 2,
'invitationHash': 'E2zRXv3cp-',
};

const response = await global.api?.fakeRequest({
Expand Down Expand Up @@ -201,6 +202,7 @@ describe('NoteSettings API', () => {
'noteId': 53,
'customHostname': 'codex.so',
'isPublic': false,
'invitationHash': 'FfAwyaR80C',
};

const response = await global.api?.fakeRequest({
Expand Down Expand Up @@ -279,4 +281,4 @@ describe('NoteSettings API', () => {

test.todo('Return 403 when user authorized, but not member of the team');
});
});
});
12 changes: 8 additions & 4 deletions src/tests/test-data/notes-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@
"id": 1,
"note_id": 1,
"custom_hostname": "codex.so",
"is_public": true
"is_public": true,
"invitation_hash": "Hzh2hy4igf"
},

{
"id": 2,
"note_id": 2,
"custom_hostname": "codex.so",
"is_public": true
"is_public": true,
"invitation_hash": "E2zRXv3cp-"
},

{
"id": 3,
"note_id": 3,
"custom_hostname": "codex.so",
"is_public": false
"is_public": false,
"invitation_hash": "Lw5kIwwo4_"
},

{
"id": 53,
"note_id": 53,
"custom_hostname": "codex.so",
"is_public": true
"is_public": true,
"invitation_hash": "FfAwyaR80C"
}
]

0 comments on commit f2331c6

Please sign in to comment.