Strip timestamps from comparison for api tests, in an attempt to fix the test failures. (#5847)
This commit is contained in:
@@ -34,7 +34,7 @@ class ApiStatuslabelsCest
|
||||
$statuslabel = App\Models\Statuslabel::orderByDesc('created_at')
|
||||
->withCount('assets')
|
||||
->take(10)->get()->shuffle()->first();
|
||||
$I->seeResponseContainsJson((new StatuslabelsTransformer)->transformStatuslabel($statuslabel));
|
||||
$I->seeResponseContainsJson($I->removeTimestamps((new StatuslabelsTransformer)->transformStatuslabel($statuslabel)));
|
||||
}
|
||||
|
||||
/** @test */
|
||||
|
||||
Reference in New Issue
Block a user