Fix tests (#72)
This commit is contained in:
parent
24704bd4ed
commit
2b160b73c3
1 changed files with 36 additions and 0 deletions
|
@ -245,6 +245,15 @@ func sortTasksForTesting(by SortBy) (tasks []*ListTask) {
|
||||||
Created: 1543626724,
|
Created: 1543626724,
|
||||||
Updated: 1543626724,
|
Updated: 1543626724,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ID: 31,
|
||||||
|
Text: "task #31 with color",
|
||||||
|
HexColor: "f0f0f0",
|
||||||
|
CreatedByID: 1,
|
||||||
|
ListID: 1,
|
||||||
|
Created: 1543626724,
|
||||||
|
Updated: 1543626724,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
switch by {
|
switch by {
|
||||||
|
@ -553,6 +562,15 @@ func TestListTask_ReadAll(t *testing.T) {
|
||||||
Created: 1543626724,
|
Created: 1543626724,
|
||||||
Updated: 1543626724,
|
Updated: 1543626724,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ID: 31,
|
||||||
|
Text: "task #31 with color",
|
||||||
|
HexColor: "f0f0f0",
|
||||||
|
CreatedByID: 1,
|
||||||
|
ListID: 1,
|
||||||
|
Created: 1543626724,
|
||||||
|
Updated: 1543626724,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ID: 4,
|
ID: 4,
|
||||||
Text: "task #4 low prio",
|
Text: "task #4 low prio",
|
||||||
|
@ -826,6 +844,15 @@ func TestListTask_ReadAll(t *testing.T) {
|
||||||
Created: 1543626724,
|
Created: 1543626724,
|
||||||
Updated: 1543626724,
|
Updated: 1543626724,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ID: 31,
|
||||||
|
Text: "task #31 with color",
|
||||||
|
HexColor: "f0f0f0",
|
||||||
|
CreatedByID: 1,
|
||||||
|
ListID: 1,
|
||||||
|
Created: 1543626724,
|
||||||
|
Updated: 1543626724,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
wantErr: false,
|
wantErr: false,
|
||||||
},
|
},
|
||||||
|
@ -1050,6 +1077,15 @@ func TestListTask_ReadAll(t *testing.T) {
|
||||||
Created: 1543626724,
|
Created: 1543626724,
|
||||||
Updated: 1543626724,
|
Updated: 1543626724,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ID: 31,
|
||||||
|
Text: "task #31 with color",
|
||||||
|
HexColor: "f0f0f0",
|
||||||
|
CreatedByID: 1,
|
||||||
|
ListID: 1,
|
||||||
|
Created: 1543626724,
|
||||||
|
Updated: 1543626724,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ID: 6,
|
ID: 6,
|
||||||
Text: "task #6 lower due date",
|
Text: "task #6 lower due date",
|
||||||
|
|
Loading…
Reference in a new issue