From fc7a051285bfe4293f447c0a91efeaa704036d6a Mon Sep 17 00:00:00 2001
From: Ankit Mahato <ankmahato@gmail.com>
Date: Tue, 12 Mar 2024 02:24:35 +0530
Subject: [PATCH] POST 2 test updates

---
 test/codegen/curl_codegen_test.dart         | 7 ++++++-
 test/codegen/dart_http_codegen_test.dart    | 7 ++++++-
 test/codegen/js_axios_codegen_test.dart     | 2 +-
 test/codegen/js_fetch_codegen_test.dart     | 2 +-
 test/codegen/nodejs_axios_codegen_test.dart | 2 +-
 test/codegen/nodejs_fetch_codegen_test.dart | 2 +-
 6 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/test/codegen/curl_codegen_test.dart b/test/codegen/curl_codegen_test.dart
index 4481e819..29f9a406 100644
--- a/test/codegen/curl_codegen_test.dart
+++ b/test/codegen/curl_codegen_test.dart
@@ -115,7 +115,12 @@ void main() {
   --url 'https://api.apidash.dev/case/lower' \
   --header 'Content-Type: application/json' \
   --data '{
-"text": "I LOVE Flutter"
+"text": "I LOVE Flutter",
+"flag": null,
+"male": true,
+"female": false,
+"no": 1.2,
+"arr": ["null", "true", "false", null]
 }'""";
       expect(curlCodeGen.getCode(requestModelPost2, "https"), expectedCode);
     });
diff --git a/test/codegen/dart_http_codegen_test.dart b/test/codegen/dart_http_codegen_test.dart
index 790658b1..696646b0 100644
--- a/test/codegen/dart_http_codegen_test.dart
+++ b/test/codegen/dart_http_codegen_test.dart
@@ -409,7 +409,12 @@ void main() async {
   var uri = Uri.parse('https://api.apidash.dev/case/lower');
 
   String body = r'''{
-"text": "I LOVE Flutter"
+"text": "I LOVE Flutter",
+"flag": null,
+"male": true,
+"female": false,
+"no": 1.2,
+"arr": ["null", "true", "false", null]
 }''';
 
   var headers = {'content-type': 'application/json'};
diff --git a/test/codegen/js_axios_codegen_test.dart b/test/codegen/js_axios_codegen_test.dart
index c364dbdb..cf2d5a18 100644
--- a/test/codegen/js_axios_codegen_test.dart
+++ b/test/codegen/js_axios_codegen_test.dart
@@ -383,7 +383,7 @@ axios(config)
   headers: {
     "Content-Type": "application/json"
   },
-  data: "{\n\"text\": \"I LOVE Flutter\"\n}"
+  data: "{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
 };
 
 axios(config)
diff --git a/test/codegen/js_fetch_codegen_test.dart b/test/codegen/js_fetch_codegen_test.dart
index c29f93b9..2c2ec049 100644
--- a/test/codegen/js_fetch_codegen_test.dart
+++ b/test/codegen/js_fetch_codegen_test.dart
@@ -429,7 +429,7 @@ let options = {
     "Content-Type": "application/json"
   },
   body: 
-"{\n\"text\": \"I LOVE Flutter\"\n}"
+"{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
 };
 
 let status;
diff --git a/test/codegen/nodejs_axios_codegen_test.dart b/test/codegen/nodejs_axios_codegen_test.dart
index d4a12902..f3e77570 100644
--- a/test/codegen/nodejs_axios_codegen_test.dart
+++ b/test/codegen/nodejs_axios_codegen_test.dart
@@ -415,7 +415,7 @@ let config = {
   headers: {
     "Content-Type": "application/json"
   },
-  data: "{\n\"text\": \"I LOVE Flutter\"\n}"
+  data: "{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
 };
 
 axios(config)
diff --git a/test/codegen/nodejs_fetch_codegen_test.dart b/test/codegen/nodejs_fetch_codegen_test.dart
index 592610ee..0c98ac35 100644
--- a/test/codegen/nodejs_fetch_codegen_test.dart
+++ b/test/codegen/nodejs_fetch_codegen_test.dart
@@ -451,7 +451,7 @@ let options = {
     "Content-Type": "application/json"
   },
   body: 
-"{\n\"text\": \"I LOVE Flutter\"\n}"
+"{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
 };
 
 let status;