File tree Expand file tree Collapse file tree
repository/storage/postgres/orm/sequelize Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments