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 ApiLocationsCest
|
||||
$location = App\Models\Location::orderByDesc('created_at')
|
||||
->withCount('assignedAssets', 'assets', 'users')
|
||||
->take(10)->get()->shuffle()->first();
|
||||
$I->seeResponseContainsJson((new LocationsTransformer)->transformLocation($location));
|
||||
$I->seeResponseContainsJson($I->removeTimestamps((new LocationsTransformer)->transformLocation($location)));
|
||||
}
|
||||
|
||||
/** @test */
|
||||
|
||||
Reference in New Issue
Block a user