Skip to content

Commit addf3a5

Browse files
committed
refactor: remove useless json extensions
1 parent b867ee1 commit addf3a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stubs/nova_test.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static function getRun{{$entity}}ActionsData(): array
179179
'request' => [
180180
'resources' => '1,2',
181181
],
182-
'state' => 'run_{{$action['fixture']}}_state.json',
182+
'state' => 'run_{{$action['fixture']}}_state',
183183
],
184184
@endforeach
185185
];
@@ -204,7 +204,7 @@ public static function get{{$entity}}ActionsData(): array
204204
@foreach($actions as $action)
205205
[
206206
'resources' => [1, 2],
207-
'fixture' => 'get_{{$snake_entity}}_actions_{{$action['fixture']}}.json',
207+
'fixture' => 'get_{{$snake_entity}}_actions_{{$action['fixture']}}',
208208
],
209209
@endforeach
210210
];
@@ -229,7 +229,7 @@ public static function get{{$entity}}FiltersData(): array
229229
'request' => [
230230
'{{$filter['name']}}' => $this->novaSearchParams(['search term']),
231231
],
232-
'fixture' => 'filter_{{$snake_entity}}_by_{{$filter['fixture_name']}}.json',
232+
'fixture' => 'filter_{{$snake_entity}}_by_{{$filter['fixture_name']}}',
233233
],
234234
@endforeach
235235
];

stubs/test.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ public static function getSearchFilters(): array
192192
return [
193193
[
194194
'filter' => ['all' => 1],
195-
'fixture' => 'search_all.json',
195+
'fixture' => 'search_all',
196196
],
197197
[
198198
'filter' => [
199199
'page' => 2,
200200
'per_page' => 2,
201201
],
202-
'fixture' => 'search_by_page_per_page.json',
202+
'fixture' => 'search_by_page_per_page',
203203
],
204204
];
205205
}

0 commit comments

Comments
 (0)