Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tatiana Fomina <[email protected]>
Co-authored-by: Peter Savchenko <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2024
1 parent 7eee5fe commit f7a661a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/service/noteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class NoteSettingsService {
const noteSettings = await this.noteSettingsRepository.getNoteSettingsByInvitationHash(invitationHash);

/**
* Check does invitation hash is valid
* Check if invitation hash is valid
*/
if (noteSettings === null) {
throw new Error(`Wrong invitation`);
Expand Down
1 change: 1 addition & 0 deletions src/presentation/http/router/join.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ describe('Join API', () => {
message: `Note with invitation ${hash} does not exists`,
});
});

test('Returns 200 when user is added to the team', async () => {
const userId = 1;
const noteId = 1;
Expand Down

0 comments on commit f7a661a

Please sign in to comment.