Skip to content

Commit f683871

Browse files
Revert changed unit test
1 parent 75a1d9b commit f683871

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/unit/OptionsListUtilsTest.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,13 +1565,12 @@ describe('OptionsListUtils', () => {
15651565
expect(filteredOptions.recentReports.at(0)?.text).toBe('Mr Sinister');
15661566
});
15671567

1568-
it('should find archived chats', () => {
1569-
const searchText = 'Archived';
1570-
// Given a set of options
1571-
// When we call getSearchOptions with all betas
1568+
it('should include archived chats in options', () => {
15721569
const options = getSearchOptions({options: OPTIONS, draftComments: {}, nvpDismissedProductTraining, betas: [CONST.BETAS.ALL]});
1573-
const filteredOptions = filterAndOrderOptions(options, searchText, COUNTRY_CODE);
1574-
expect(!!filteredOptions.recentReports.at(0)?.private_isArchived).toBe(true);
1570+
1571+
const archivedReport = options.recentReports.find((report) => report.reportID === '10');
1572+
expect(archivedReport).toBeDefined();
1573+
expect(!!archivedReport?.private_isArchived).toBe(true);
15751574
});
15761575

15771576
it('should filter options by email if dot is skipped in the email', () => {

0 commit comments

Comments
 (0)