Skip to content

Commit 11fd7ed

Browse files
committed
add a simple test
1 parent b1bb3f3 commit 11fd7ed

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/actions/ReportTest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,4 +1754,14 @@ describe('actions/Report', () => {
17541754
expect(Object.keys(selfDMReportActions ?? {}).length).toBe(3);
17551755
});
17561756
});
1757+
1758+
describe('searchInServer', () => {
1759+
it('should return the same result with or without uppercase input.', async () => {
1760+
Report.searchInServer('test');
1761+
Report.searchInServer('TEST');
1762+
const upperCaseRequest = PersistedRequests.getAll().at(0);
1763+
const lowerCaseRequest = PersistedRequests.getAll().at(1);
1764+
expect(upperCaseRequest?.data?.searchInput).toBe(lowerCaseRequest?.data?.searchInput);
1765+
});
1766+
});
17571767
});

0 commit comments

Comments
 (0)