From 110c26722ab8c5a7d0707777f9ceadb6da382b92 Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Wed, 26 Oct 2022 11:03:06 +0300 Subject: [PATCH] Make a comment and test name make more sense Co-authored-by: Janne Savolainen Signed-off-by: Iku-turso --- .../utils/composite/get-composite/get-composite.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/utils/composite/get-composite/get-composite.test.ts b/src/common/utils/composite/get-composite/get-composite.test.ts index cc038d46bb..594d0f3d01 100644 --- a/src/common/utils/composite/get-composite/get-composite.test.ts +++ b/src/common/utils/composite/get-composite/get-composite.test.ts @@ -206,7 +206,7 @@ Available parent ids are: ); }); - describe("given items with missing parent ids, when creating composite with handling for missing parents", () => { + describe("given items with missing parents, when creating composite with handling for missing parents", () => { let composite: Composite; let handleMissingParentIdMock: jest.Mock; @@ -217,7 +217,8 @@ Available parent ids are: const someItemWithMissingParentId = { id: "some-orphan-id", - // Note: missing parent id makes the item orphan. + // Note: the item corresponding to this id does not exist, + // making this item have a "missing parent". parentId: "some-missing-id", };