-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8688b32
commit 565a200
Showing
36 changed files
with
191 additions
and
129 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
|
@@ -123,7 +123,7 @@ describe('probingHTTP', () => { | |
return res(ctx.status(200)) | ||
}) | ||
) | ||
const request: any = { | ||
const request = { | ||
url: 'http://localhost:4000/login', | ||
method: 'POST', | ||
headers: { 'content-type': 'application/x-www-form-urlencoded' }, | ||
|
@@ -162,7 +162,7 @@ describe('probingHTTP', () => { | |
url: 'https://example.com', | ||
method: 'POST', | ||
headers: { 'content-type': 'multipart/form-data' }, | ||
body: { username: '[email protected]', password: 'drowssap' } as any, | ||
body: { username: '[email protected]', password: 'drowssap' } as never, | ||
timeout: 10_000, | ||
} | ||
|
||
|
@@ -200,7 +200,7 @@ describe('probingHTTP', () => { | |
url: 'https://example.com', | ||
method: 'POST', | ||
headers: { 'content-type': 'text/plain' }, | ||
body: 'multiline string\nexample' as any, | ||
body: 'multiline string\nexample', | ||
timeout: 10_000, | ||
} | ||
|
||
|
@@ -238,7 +238,7 @@ describe('probingHTTP', () => { | |
url: 'https://example.com', | ||
method: 'POST', | ||
headers: { 'content-type': 'text/yaml' }, | ||
body: { username: '[email protected]', password: 'secret' } as any, | ||
body: { username: '[email protected]', password: 'secret' } as never, | ||
timeout: 10_000, | ||
} | ||
|
||
|
@@ -276,7 +276,7 @@ describe('probingHTTP', () => { | |
url: 'https://example.com', | ||
method: 'POST', | ||
headers: { 'content-type': 'application/xml' }, | ||
body: { username: '[email protected]', password: 'secret' } as any, | ||
body: { username: '[email protected]', password: 'secret' } as never, | ||
timeout: 10_000, | ||
} | ||
|
||
|
@@ -314,7 +314,7 @@ describe('probingHTTP', () => { | |
url: 'https://example.com', | ||
method: 'POST', | ||
headers: { 'content-type': 'text/plain' }, | ||
body: 'multiline string\nexample' as any, | ||
body: 'multiline string\nexample', | ||
timeout: 10_000, | ||
allowUnauthorized: true, | ||
} | ||
|
@@ -335,9 +335,9 @@ describe('probingHTTP', () => { | |
it('should generate request chaining body', () => { | ||
// arrange | ||
type TestTable = { | ||
body: Record<string, any> | string | ||
body: Record<string, unknown> | string | ||
responses: ProbeRequestResponse[] | ||
expected: Record<string, any> | string | ||
expected: Record<string, unknown> | string | ||
} | ||
const testTables: TestTable[] = [ | ||
{ | ||
|
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
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
Oops, something went wrong.