fix: standardize JSON response format in TextWidgetController and update related tests

This commit is contained in:
jon brookes 2026-01-15 18:02:04 +00:00
parent 224654cabf
commit d715a177bd
2 changed files with 7 additions and 2 deletions

View file

@ -14,7 +14,10 @@ test('can list text widgets', function () {
$response = $this->actingAs($user)->getJson('/api/text-widgets');
$response->assertOk()
->assertJsonCount(3);
->assertJson(fn ($json) =>
$json->has('data', 3)
->etc()
);
});
test('can create a text widget', function () {