File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,13 @@ void main() {
50
50
test ('GET 3' , () {
51
51
const expectedCode = r"""{
52
52
"method": "GET",
53
- "url": "https://api.apidash.dev/country/data?code=IND",
53
+ "url": "https://api.apidash.dev/country/data?code=US&code= IND",
54
54
"httpVersion": "HTTP/1.1",
55
55
"queryString": [
56
+ {
57
+ "name": "code",
58
+ "value": "US"
59
+ },
56
60
{
57
61
"name": "code",
58
62
"value": "IND"
@@ -668,6 +672,10 @@ void main() {
668
672
{
669
673
"name": "Content-Type",
670
674
"value": "application/json"
675
+ },
676
+ {
677
+ "name": "x-api-key",
678
+ "value": "reqres-free-v1"
671
679
}
672
680
],
673
681
"postData": {
@@ -696,6 +704,10 @@ void main() {
696
704
{
697
705
"name": "Content-Type",
698
706
"value": "application/json"
707
+ },
708
+ {
709
+ "name": "x-api-key",
710
+ "value": "reqres-free-v1"
699
711
}
700
712
],
701
713
"postData": {
@@ -720,7 +732,12 @@ void main() {
720
732
"url": "https://reqres.in/api/users/2",
721
733
"httpVersion": "HTTP/1.1",
722
734
"queryString": [],
723
- "headers": []
735
+ "headers": [
736
+ {
737
+ "name": "x-api-key",
738
+ "value": "reqres-free-v1"
739
+ }
740
+ ]
724
741
}""" ;
725
742
expect (
726
743
codeGen.getCode (
@@ -741,6 +758,10 @@ void main() {
741
758
{
742
759
"name": "Content-Type",
743
760
"value": "application/json"
761
+ },
762
+ {
763
+ "name": "x-api-key",
764
+ "value": "reqres-free-v1"
744
765
}
745
766
],
746
767
"postData": {
You can’t perform that action at this time.
0 commit comments