Checklisty: procent postępu liczony wg szacowanego czasu
This commit is contained in:
@@ -99,7 +99,7 @@ func TestChecklistsAgainstDatabase(t *testing.T) {
|
||||
}
|
||||
alice.ok("DELETE", "/_bm/api/v1/readings/"+jsonID(reading.ID)+"/progress")
|
||||
summary := list(alice.ok("GET", base+"/checklists?meeting="+jsonID(meeting.ID)))
|
||||
if len(summary) != 1 || obj(summary[0]["progress"])["done"] != 1.0 || obj(summary[0]["progress"])["minutes_left"] != 30.0 {
|
||||
if len(summary) != 1 || obj(summary[0]["progress"])["done"] != 1.0 || obj(summary[0]["progress"])["minutes_left"] != 30.0 || obj(summary[0]["progress"])["percent"] != 66.0 {
|
||||
t.Errorf("after unread: %v", summary)
|
||||
}
|
||||
if summary[0]["items"] != nil {
|
||||
|
||||
Reference in New Issue
Block a user