Try to fix test

This is a listing, not a single asset
This commit is contained in:
snipe 2018-07-17 00:20:06 -07:00
parent 0f85d6810b
commit 5dc2ac9e22

View file

@ -33,8 +33,8 @@ class ApiAssetsCest
$response = json_decode($I->grabResponse(), true);
// sample verify
$asset = Asset::orderByDesc('id')->take(20)->get()->first();
$I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAsset($asset)));
$assets = Asset::orderByDesc('id')->take(20)->get()->first();
$I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAssets($assets)));
}
/** @test */