Refactor schedule JS to be less buggy (fixes #12).

This commit is contained in:
Patrick Fairbank
2017-09-02 19:18:15 -07:00
parent 4e418434da
commit 11b6b5f856
4 changed files with 29 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ func TestSetupSchedule(t *testing.T) {
// Check the default setting values.
recorder := web.getHttpResponse("/setup/schedule")
assert.Equal(t, 200, recorder.Code)
assert.Contains(t, recorder.Body.String(), "360") // The default match spacing.
assert.Contains(t, recorder.Body.String(), "addBlock();")
// Submit a schedule for generation.
postData := "numScheduleBlocks=3&startTime0=2014-01-01 09:00:00 AM&numMatches0=7&matchSpacingSec0=480&" +