feat(purchase
This commit is contained in:
@@ -113,6 +113,16 @@ func TestAnalyticsServiceGetPurchasingAnalyticsValidation(t *testing.T) {
|
||||
},
|
||||
wantErr: "invalid group_by value: quarter",
|
||||
},
|
||||
{
|
||||
name: "unknown team",
|
||||
req: &models.PurchasingAnalyticsRequest{
|
||||
OrganizationID: uuid.New(),
|
||||
DateFrom: now,
|
||||
DateTo: now,
|
||||
Team: "marketing",
|
||||
},
|
||||
wantErr: "team must be one of",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user