Skip to content

Commit

Permalink
test: suppress console warnings from live-loan test
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Oct 3, 2024
1 parent d3925f5 commit 4b0e6f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/specs/server/live-loan-fetch.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ describe('live-loan-fetch', () => {
expect(sortBy).toEqual(expectedSort);
}

beforeEach(() => {
// Suppress console warnings
jest.spyOn(console, 'warn').mockImplementation(jest.fn());
});

it('converts input strings to valid LoanSearchFiltersInput objects', async () => {
// Using sort_random forces using the legacy loan search
await testFilterParsing('sort_random,gender_male,sector_education', { gender: 'male', sector: [15] });
Expand Down

0 comments on commit 4b0e6f9

Please sign in to comment.