Skip to content

Commit

Permalink
fix generic
Browse files Browse the repository at this point in the history
  • Loading branch information
jarle committed Sep 16, 2024
1 parent 0f0b374 commit e78d680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adapter/tests/adapter/remix_adapter_headers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestFactory, ResponseFactory } from '@adonisjs/core/factories/http'
import { test } from '@japa/runner'
import { RequestOptions, ResponseOptions, createRequest, createResponse } from 'node-mocks-http'
import { ServerResponse } from 'node:http'
import { IncomingMessage, ServerResponse } from 'node:http'
import { createRemixHeaders, createRemixRequest } from '../../src/remix_adapter.js'

test.group('createRemixHeaders', () => {
Expand Down Expand Up @@ -77,7 +77,7 @@ test.group('Remix Adapter Tests', () => {
function testRequest(options?: RequestOptions | undefined) {
return new RequestFactory()
.merge({
req: createRequest(options),
req: createRequest<IncomingMessage>(options),
})
.create()
}
Expand Down

0 comments on commit e78d680

Please sign in to comment.