Strip timestamps from comparison for api tests, in an attempt to fix the test failures. (#5847)

This commit is contained in:
Daniel Meltzer
2018-07-16 16:41:51 -05:00
committed by snipe
parent 8f6e0ad5be
commit dcf72ce2da
13 changed files with 168 additions and 13 deletions
+1 -1
View File
@@ -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 */