Skip to content

Commit

Permalink
add test case for specific times
Browse files Browse the repository at this point in the history
  • Loading branch information
clintjedwards committed Nov 14, 2020
1 parent 4daf25f commit 617b909
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ func TestAble(t *testing.T) {
time.Date(2020, 8, 4, 1, 1, 1, 1, time.UTC), false},
"every day at noon in January only": {"0 12 * 1 * *",
time.Date(2020, 1, 24, 12, 0, 0, 0, time.UTC), true},
"every day from 6am to 2pm": {"* 6-14 * * * *",
time.Date(2020, 1, 24, 12, 0, 0, 0, time.UTC), true},
}

for name, tc := range tests {
Expand Down

0 comments on commit 617b909

Please sign in to comment.