FIX[BE]: period and adjustment helper to function

This commit is contained in:
ragilap
2025-10-16 16:44:26 +07:00
parent 62a1011a4b
commit 8c0790627a
3 changed files with 18 additions and 1 deletions
@@ -88,6 +88,9 @@ func TestProjectFlockSummary(t *testing.T) {
if len(createResp.Data.Kandangs) != 1 || createResp.Data.Kandangs[0].Id != kandangID {
t.Fatalf("expected kandang detail to be present, got %+v", createResp.Data.Kandangs)
}
if createResp.Data.Kandangs[0].Status == "" {
t.Fatalf("expected kandang status to be present, got %+v", createResp.Data.Kandangs[0])
}
if createResp.Data.Period != 1 {
t.Fatalf("expected period 1 to be assigned automatically, got %d", createResp.Data.Period)
}