Skip to content

Commit 86038c9

Browse files
author
Abhishek Jasud
committed
Comments changes
1 parent 6d3919a commit 86038c9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/presentation/http/router/note.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ describe('Note API', () => {
22882288
test.each([
22892289
// Test case 1: No parent or child
22902290
{
2291-
description: 'Get note hierarchy with no parent or child',
2291+
description: 'Should get note hierarchy with no parent or child when noteId passed has no relations',
22922292
setup: async () => {
22932293
const note = await global.db.insertNote({ creatorId: user.id });
22942294

@@ -2312,7 +2312,7 @@ describe('Note API', () => {
23122312

23132313
// Test case 2: With child
23142314
{
2315-
description: 'Get note hierarchy with child',
2315+
description: 'Should get note hierarchy with child when noteId passed has relations',
23162316
setup: async () => {
23172317
const childNote = await global.db.insertNote({ creatorId: user.id });
23182318
const parentNote = await global.db.insertNote({ creatorId: user.id });

src/repository/storage/postgres/orm/sequelize/noteRelations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default class NoteRelationsSequelizeStorage {
247247
}
248248

249249
/**
250-
* Get ultimate parent noteId by noteId
250+
* Gets the ultimate parent noteId or `null` if none exists
251251
* @param noteId - the ID of note
252252
*/
253253
public async getUltimateParentByNoteId(noteId: NoteInternalId): Promise<NoteInternalId | null> {

0 commit comments

Comments
 (0)