Skip to content

Commit

Permalink
Fix to_search_params.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
slvrtrn committed Nov 5, 2024
1 parent 9e6cc55 commit 8c16eaa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,16 @@ describe('toSearchParams', () => {
it('should set a single role', async () => {
const query = 'SELECT * FROM system.query_log'
const params = toSearchParams({
database: 'some_db',
query,
database: 'some_db',
query_id: 'my-query-id',
role: 'single-role',
})!
const result = toSortedArray(params)
expect(result).toEqual([
['database', 'some_db'],
['query', 'SELECT * FROM system.query_log'],
['query_id', 'my-query-id'],
['role', 'single-role'],
])
})
Expand Down

0 comments on commit 8c16eaa

Please sign in to comment.