From 02cc0161592c6ceb9c64f68240d8dfffad371338 Mon Sep 17 00:00:00 2001 From: Leela Prasad Date: Thu, 11 Apr 2024 23:37:33 +0530 Subject: [PATCH 1/2] Update docs for withCore API --- docs/api/requests/withCore.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/api/requests/withCore.md b/docs/api/requests/withCore.md index 6ebb6c10..f1d7e0da 100644 --- a/docs/api/requests/withCore.md +++ b/docs/api/requests/withCore.md @@ -61,4 +61,7 @@ await spec() .get('https://pactumjs.github.io/') .withCore({ agent }) .expectStatus(200); -``` \ No newline at end of file +``` + +::: warning WARNING +If `withCore` is used at the end in request chaining, all [http core options](https://nodejs.org/api/http.html#httprequesturl-options-callback) provided in `withCore` will take precedence and they will override any previously values. From c6eb5a2f641fa85a8d78dacee28f87b79405c10e Mon Sep 17 00:00:00 2001 From: Anudeep Date: Fri, 12 Apr 2024 21:09:32 +0530 Subject: [PATCH 2/2] added closing colons --- docs/api/requests/withCore.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/requests/withCore.md b/docs/api/requests/withCore.md index f1d7e0da..2ae43eb6 100644 --- a/docs/api/requests/withCore.md +++ b/docs/api/requests/withCore.md @@ -65,3 +65,4 @@ await spec() ::: warning WARNING If `withCore` is used at the end in request chaining, all [http core options](https://nodejs.org/api/http.html#httprequesturl-options-callback) provided in `withCore` will take precedence and they will override any previously values. +:::