Skip to content

Commit

Permalink
chore: use getQuery from h3
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Oct 24, 2023
1 parent e07d1b5 commit 537cc55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable test/prefer-lowercase-title */
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
import { createApp, eventHandler, getRequestHeaders, readBody, toNodeListener } from 'h3'
import { createApp, eventHandler, getQuery, getRequestHeaders, readBody, toNodeListener } from 'h3'
import { listen } from 'listhen'
import { getQuery } from 'ufo'
import type { Listener } from 'listhen'
import { createClient } from '../src'
import type { ApiBuilder } from '../src'
Expand All @@ -26,7 +25,7 @@ describe('unrested', () => {
headers: getRequestHeaders(event),
method: event.method,
})))
.use('/params', eventHandler(event => getQuery(event.path || '')))
.use('/params', eventHandler(event => getQuery(event)))

listener = await listen(toNodeListener(app))
client = createClient({
Expand Down

0 comments on commit 537cc55

Please sign in to comment.