Skip to content

Commit e8ef256

Browse files
tests: prevent tests from failing by asserting structure instead of value
1 parent 88bdfc5 commit e8ef256

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Concerns/MakesNovaDashboardRequestsTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public function it_can_get_nova_dashboard_metrics(): void
5555
// Assert
5656
$this->assertInstanceOf(TestResponse::class, $response);
5757
$response->assertStatus(200);
58-
$response->assertJsonPath('value.value', 1);
58+
$response->assertJsonStructure([
59+
'value' => [
60+
'value',
61+
],
62+
]);
5963
}
6064
}

0 commit comments

Comments
 (0)