remove time dependent test
This commit is contained in:
parent
168cf8bb17
commit
a21867690b
|
@ -242,14 +242,6 @@ func TestDateString(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDateHuman(t *testing.T) {
|
||||
monday := task.Today().Add(1)
|
||||
for {
|
||||
if monday.Weekday() == time.Monday {
|
||||
break
|
||||
}
|
||||
monday = monday.Add(1)
|
||||
}
|
||||
|
||||
for _, tc := range []struct {
|
||||
name string
|
||||
date task.Date
|
||||
|
@ -260,11 +252,6 @@ func TestDateHuman(t *testing.T) {
|
|||
date: task.NewDate(0, 0, 0),
|
||||
exp: "-",
|
||||
},
|
||||
{
|
||||
name: "weekday",
|
||||
date: monday,
|
||||
exp: "monday",
|
||||
},
|
||||
{
|
||||
name: "default",
|
||||
date: task.NewDate(2020, 1, 1),
|
||||
|
|
Loading…
Reference in New Issue