Skip to content

Commit

Permalink
fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsuki committed Jan 4, 2022
1 parent 59c82d9 commit b991b46
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/unit/OptionsListUtilsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('OptionsListUtils', () => {
unreadActionCount: 1,
},
};

const REPORTS_WITH_MORE_PINS = {
...REPORTS,
13: {
Expand Down Expand Up @@ -516,7 +516,6 @@ describe('OptionsListUtils', () => {
]),
);


// Test by excluding Chronos from the results
results = OptionsListUtils.getNewChatOptions(
REPORTS_WITH_CHRONOS,
Expand Down Expand Up @@ -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]');
}));
});

0 comments on commit b991b46

Please sign in to comment.