-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* tmp * fix 'wrong callsite for RequestHooks errors' (close #2555)
- Loading branch information
1 parent
8cde8f7
commit 27fb1e7
Showing
13 changed files
with
174 additions
and
103 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
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
10 changes: 10 additions & 0 deletions
10
test/server/data/test-suites/request-hooks/request-logger/cannot-stringify-request-body.js
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { RequestLogger } from 'testcafe'; | ||
|
||
fixture `Fixture`; | ||
|
||
const logger = new RequestLogger('', { | ||
logRequestBody: false, | ||
stringifyRequestBody: true | ||
}); | ||
|
||
test('test', async () => {}); |
10 changes: 10 additions & 0 deletions
10
test/server/data/test-suites/request-hooks/request-logger/cannot-stringify-response-body.js
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { RequestLogger } from 'testcafe'; | ||
|
||
fixture `Fixture`; | ||
|
||
const logger = new RequestLogger('', { | ||
logResponseBody: false, | ||
stringifyResponseBody: true | ||
}); | ||
|
||
test('test', async () => {}); |
7 changes: 7 additions & 0 deletions
7
...ata/test-suites/request-hooks/request-mock/on-request-to-was-not-called-before-respond.js
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { RequestMock } from 'testcafe'; | ||
|
||
fixture `Fixture`; | ||
|
||
const mock = RequestMock().respond(() => {}).onRequestTo({}); | ||
|
||
test('test', async t => {}); |
7 changes: 7 additions & 0 deletions
7
...data/test-suites/request-hooks/request-mock/respond-was-not-called-after-on-request-to.js
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { RequestMock } from 'testcafe'; | ||
|
||
fixture `Fixture`; | ||
|
||
const mock = RequestMock().onRequestTo({}).onRequestTo({}); | ||
|
||
test('test', async t => {}); |
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