Finalize Typescript restructure

This commit is contained in:
Darko Gjorgjijoski
2026-04-06 17:59:15 +02:00
parent cab785172e
commit 74b4b2df4e
209 changed files with 12419 additions and 1745 deletions

View File

@@ -42,7 +42,31 @@ test('customer stats', function () {
$response = getJson("api/v1/customers/{$customer->id}/stats");
$response->assertStatus(200);
$response
->assertOk()
->assertJsonPath('data.id', $customer->id)
->assertJsonPath('data.name', $customer->name)
->assertJsonPath('data.email', $customer->email)
->assertJsonStructure([
'data' => [
'id',
'name',
'email',
],
'meta' => [
'chartData' => [
'salesTotal',
'totalReceipts',
'totalExpenses',
'netProfit',
'expenseTotals',
'netProfits',
'months',
'receiptTotals',
'invoiceTotals',
],
],
]);
});
test('create customer', function () {