Skip to content

Commit

Permalink
update (note parents): small modification of function description and…
Browse files Browse the repository at this point in the history
… test naming
  • Loading branch information
dependentmadani committed Oct 24, 2024
1 parent 7efadf5 commit 47680d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/presentation/http/router/note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ describe('Note API', () => {
});
});

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

Expand Down
2 changes: 1 addition & 1 deletion src/repository/storage/postgres/orm/sequelize/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default class NoteSequelizeStorage {
};

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

0 comments on commit 47680d6

Please sign in to comment.