Skip to content

Commit 47680d6

Browse files
update (note parents): small modification of function description and test naming
1 parent 7efadf5 commit 47680d6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ describe('Note API', () => {
568568
});
569569
});
570570

571-
test('Returns two note parents in case when the note parents IDs relations are provided in a different order than expected', async () => {
571+
test('Returns note parents in correct order in case when parents created in a non-linear order', async () => {
572572
/** Create test user */
573573
const user = await global.db.insertUser();
574574

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export default class NoteSequelizeStorage {
325325
};
326326

327327
/**
328-
* Get all notes based on their ids
328+
* Get all notes based on their ids in the same order of passed ids
329329
* @param noteIds - list of note ids
330330
*/
331331
public async getNotesByIds(noteIds: NoteInternalId[]): Promise<Note[]> {

0 commit comments

Comments
 (0)