diff --git a/src/custom-sort/custom-sort.spec.ts b/src/custom-sort/custom-sort.spec.ts index aa27043..d42696d 100644 --- a/src/custom-sort/custom-sort.spec.ts +++ b/src/custom-sort/custom-sort.spec.ts @@ -2261,7 +2261,7 @@ describe('CustomSortOrder.byMetadataFieldAlphabeticalReverse', () => { expect(result2).toBe(SORT_FIRST_GOES_LATER) expect(result3).toBe(SORT_ITEMS_ARE_EQUAL) }) - it('should put the item with metadata earlier if the second one has no metadata ', () => { + it('should put the item with metadata below the second one w/o metadata (this is reverse order)', () => { // given const itemA: Partial = { metadataFieldValue: '15', @@ -2277,8 +2277,8 @@ describe('CustomSortOrder.byMetadataFieldAlphabeticalReverse', () => { const result2: number = sorter(itemB as FolderItemForSorting, itemA as FolderItemForSorting) // then - expect(result1).toBe(SORT_FIRST_GOES_EARLIER) - expect(result2).toBe(SORT_FIRST_GOES_LATER) + expect(result1).toBe(SORT_FIRST_GOES_LATER) + expect(result2).toBe(SORT_FIRST_GOES_EARLIER) }) it('should put the item with metadata later if the second one has no metadata (reverse order)', () => { // given