Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Mar 7, 2020
1 parent a48f14e commit b0ddb97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions resources/views/partials/example-requests/bash.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
```bash
curl -X {{$route['methods'][0]}} \
{{$route['methods'][0] == 'GET' ? '-G ' : ''}}"{{ rtrim($baseUrl, '/')}}/{{ ltrim($route['boundUri'], '/') }}@if(count($route['cleanQueryParameters']))?{!! \Mpociot\ApiDoc\Tools\Utils::printQueryParamsAsString($route['cleanQueryParameters']) !!}
@endif" @if(count($route['headers']))\
{{$route['methods'][0] == 'GET' ? '-G ' : ''}}"{{ rtrim($baseUrl, '/')}}/{{ ltrim($route['boundUri'], '/') }}@if(count($route['cleanQueryParameters']))?{!! \Mpociot\ApiDoc\Tools\Utils::printQueryParamsAsString($route['cleanQueryParameters']) !!}@endif" @if(count($route['headers']))\
@foreach($route['headers'] as $header => $value)
-H "{{$header}}: {{ addslashes($value) }}"@if(! ($loop->last) || ($loop->last && count($route['bodyParameters']))) \
@endif
Expand Down
1 change: 1 addition & 0 deletions src/Tools/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public static function dumpException(\Exception $e)

public static function deleteDirectoryAndContents($dir)
{
$dir = ltrim($dir, "/");
$adapter = new Local(realpath(__DIR__ . '/../../'));
$fs = new Filesystem($adapter);
$fs->deleteDir($dir);
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ let params = {
"user_id": "me",
"page": "4",
"filters": "consequatur",
"url_encoded": "+ []&=",
"url_encoded": "+ []&=",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
Expand Down

0 comments on commit b0ddb97

Please sign in to comment.