-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump deps and proper type cast in tests
- Loading branch information
v1rtl
committed
Dec 3, 2022
1 parent
6bed541
commit d1309ab
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { RequestWithConnection } from './mod.ts' | ||
import { forwarded } from './mod.ts' | ||
import { ConnInfo } from 'https://deno.land/std@0.148.0/http/server.ts' | ||
import { ConnInfo } from 'https://deno.land/std@0.167.0/http/server.ts' | ||
import { describe, it, expect, run } from 'https://deno.land/x/[email protected]/mod.ts' | ||
|
||
const createReq = (hostname: string, headers?: Record<string, string>): RequestWithConnection => | ||
|
@@ -13,7 +13,7 @@ const createReq = (hostname: string, headers?: Record<string, string>): RequestW | |
} | ||
} as ConnInfo, | ||
headers: new Headers(headers || {}) | ||
} as any) | ||
} as unknown as RequestWithConnection) | ||
|
||
describe('forwarded(req)', () => { | ||
it('should work with `X-Forwarded-For` header', () => { | ||
|