Skip to content

Commit

Permalink
Adding test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed Aug 30, 2024
1 parent 6674113 commit 548f935
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graylog2-web-interface/src/util/PaginationURL.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ describe('PaginationUR', () => {

expect(url).toEqual('https://foo/?page=1&per_page=10&bool=false&scope=scope-1&scope=scope-2&query=bar');
});

it('should not URL-encode query parameter twice', () => {
const url = PaginationURL('https://foo', 1, 10, 'my search query');

expect(url).toEqual('https://foo/?page=1&per_page=10&query=my+search+query');
});
});

0 comments on commit 548f935

Please sign in to comment.