Skip to content

Commit 793f15a

Browse files
committed
Fix tests
1 parent 5e8f81d commit 793f15a

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

resources/views/partials/frontmatter.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
search: true
1111

1212
toc_footers:
13-
- <a href='http://github.com/mpociot/documentarian'>Documentation Powered by Documentarian</a>
13+
- <a href='http://github.com/mpociot/documentarian'>Documentation Powered by Documentarian</a>

resources/views/partials/route.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
@include("apidoc::partials.example-requests.$language")
1616

1717
@endforeach
18+
1819
@if(in_array('GET',$route['methods']) || (isset($route['showresponse']) && $route['showresponse']))
1920
@if(is_array($route['response']))
2021
@foreach($route['response'] as $response)
2122
> Example response ({{$response['status']}}):
2223

23-
2424
```json
2525
@if(is_object($response['content']) || is_array($response['content']))
2626
{!! json_encode($response['content'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) !!}

tests/Fixtures/partial_resource_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Welcome to the generated API reference.
3030
curl -X GET -G "http://localhost/api/users" \
3131
-H "Accept: application/json"
3232
```
33-
3433
```javascript
3534
const url = new URL("http://localhost/api/users");
3635

@@ -70,7 +69,6 @@ fetch(url, {
7069
curl -X GET -G "http://localhost/api/users/create" \
7170
-H "Accept: application/json"
7271
```
73-
7472
```javascript
7573
const url = new URL("http://localhost/api/users/create");
7674

tests/Fixtures/resource_index.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Welcome to the generated API reference.
3030
curl -X GET -G "http://localhost/api/users" \
3131
-H "Accept: application/json"
3232
```
33-
3433
```javascript
3534
const url = new URL("http://localhost/api/users");
3635

@@ -70,7 +69,6 @@ fetch(url, {
7069
curl -X GET -G "http://localhost/api/users/create" \
7170
-H "Accept: application/json"
7271
```
73-
7472
```javascript
7573
const url = new URL("http://localhost/api/users/create");
7674

@@ -110,7 +108,6 @@ fetch(url, {
110108
curl -X POST "http://localhost/api/users" \
111109
-H "Accept: application/json"
112110
```
113-
114111
```javascript
115112
const url = new URL("http://localhost/api/users");
116113

@@ -143,7 +140,6 @@ fetch(url, {
143140
curl -X GET -G "http://localhost/api/users/1" \
144141
-H "Accept: application/json"
145142
```
146-
147143
```javascript
148144
const url = new URL("http://localhost/api/users/1");
149145

@@ -183,7 +179,6 @@ fetch(url, {
183179
curl -X GET -G "http://localhost/api/users/1/edit" \
184180
-H "Accept: application/json"
185181
```
186-
187182
```javascript
188183
const url = new URL("http://localhost/api/users/1/edit");
189184

@@ -223,7 +218,6 @@ fetch(url, {
223218
curl -X PUT "http://localhost/api/users/1" \
224219
-H "Accept: application/json"
225220
```
226-
227221
```javascript
228222
const url = new URL("http://localhost/api/users/1");
229223

@@ -258,7 +252,6 @@ fetch(url, {
258252
curl -X DELETE "http://localhost/api/users/1" \
259253
-H "Accept: application/json"
260254
```
261-
262255
```javascript
263256
const url = new URL("http://localhost/api/users/1");
264257

0 commit comments

Comments
 (0)