@@ -211,10 +211,12 @@ void main() {
211
211
NameValueModel (name: "num" , value: "{{num}}" ),
212
212
],
213
213
);
214
+
214
215
Map <String ?, List <EnvironmentVariableModel >> envMap = {
215
216
kGlobalEnvironmentId: globalVars,
216
217
"activeEnvId" : activeEnvVars,
217
218
};
219
+
218
220
String ? activeEnvironmentId = "activeEnvId" ;
219
221
const expected = HttpRequestModel (
220
222
url: "api.apidash.dev/humanize/social" ,
@@ -227,7 +229,10 @@ void main() {
227
229
);
228
230
expect (
229
231
substituteHttpRequestModel (
230
- httpRequestModel, envMap, activeEnvironmentId),
232
+ httpRequestModel,
233
+ envMap,
234
+ activeEnvironmentId,
235
+ ),
231
236
expected);
232
237
});
233
238
@@ -260,7 +265,10 @@ void main() {
260
265
httpRequestModel, envMap, activeEnvironmentId),
261
266
expected);
262
267
});
263
- test ("Testing substituteHttpRequestModel with environment variables in body" , () {
268
+
269
+ test (
270
+ "Testing substituteHttpRequestModel with environment variables in body" ,
271
+ () {
264
272
const httpRequestModel = HttpRequestModel (
265
273
url: "{{url}}/humanize/social" ,
266
274
headers: [
@@ -287,7 +295,8 @@ void main() {
287
295
body: "The API key is token and the number is 8940000" ,
288
296
);
289
297
expect (
290
- substituteHttpRequestModel (httpRequestModel, envMap, activeEnvironmentId),
298
+ substituteHttpRequestModel (
299
+ httpRequestModel, envMap, activeEnvironmentId),
291
300
expected);
292
301
});
293
302
});
0 commit comments