Revert "fixed curl code gen error for empty url"

This reverts commit 7e1ca33a28921789f0720542e63b2c520e553fcf.
This commit is contained in:
Ankit Mahato
2024-03-10 06:59:31 +05:30
parent 474b718ccc
commit 28516cd1c9
3 changed files with 32 additions and 78 deletions

View File

@ -1,7 +1,6 @@
import 'package:apidash/codegen/others/curl.dart';
import 'package:test/test.dart';
import '../request_models.dart';
import 'package:test/test.dart';
void main() {
final curlCodeGen = cURLCodeGen();
@ -20,7 +19,7 @@ void main() {
test('GET 3', () {
const expectedCode =
r"""curl --url 'https://api.foss42.com/country/data?code=US&code=IND'""";
r"""curl --url 'https://api.foss42.com/country/data?code=IND'""";
expect(curlCodeGen.getCode(requestModelGet3, "https"), expectedCode);
});