-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Katsuki
committed
Jan 4, 2022
1 parent
59c82d9
commit b991b46
Showing
1 changed file
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,7 @@ describe('OptionsListUtils', () => { | |
unreadActionCount: 1, | ||
}, | ||
}; | ||
|
||
const REPORTS_WITH_MORE_PINS = { | ||
...REPORTS, | ||
13: { | ||
|
@@ -516,7 +516,6 @@ describe('OptionsListUtils', () => { | |
]), | ||
); | ||
|
||
|
||
// Test by excluding Chronos from the results | ||
results = OptionsListUtils.getNewChatOptions( | ||
REPORTS_WITH_CHRONOS, | ||
|
@@ -629,29 +628,29 @@ describe('OptionsListUtils', () => { | |
expect(results.personalDetails.length).toBe(0); | ||
|
||
// Pinned reports are always on the top in alphabetical order regardless of whether they are unread or have IOU debt. | ||
// D report name (Alphabetically first among pinned reports) | ||
// D report name (Alphabetically first among pinned reports) | ||
expect(results.recentReports[0].login).toBe('[email protected]'); | ||
// Mister Fantastic report name (Alphabetically second among pinned reports) | ||
|
||
// Mister Fantastic report name (Alphabetically second among pinned reports) | ||
expect(results.recentReports[1].login).toBe('[email protected]'); | ||
|
||
// Z report name (Alphabetically third among pinned reports) | ||
// Z report name (Alphabetically third among pinned reports) | ||
expect(results.recentReports[2].login).toBe('[email protected]'); | ||
|
||
// Unpinned report name ordered alphabetically after pinned reports | ||
//Black Panther report name has unread message | ||
// Black Panther report name has unread message | ||
expect(results.recentReports[3].login).toBe('[email protected]'); | ||
|
||
//Captain America report name has unread message | ||
// Captain America report name has unread message | ||
expect(results.recentReports[4].login).toBe('[email protected]'); | ||
|
||
//Invisible woman report name has unread message | ||
// Invisible woman report name has unread message | ||
expect(results.recentReports[5].login).toBe('[email protected]'); | ||
//Mister Sinister report name has IOU debt | ||
|
||
// Mister Sinister report name has IOU debt | ||
expect(results.recentReports[7].login).toBe('[email protected]'); | ||
|
||
//Spider-Man report name is last report and has unread message | ||
// Spider-Man report name is last report and has unread message | ||
expect(results.recentReports[8].login).toBe('[email protected]'); | ||
})); | ||
}); |