Add invalid id test
This commit is contained in:
parent
79dcfbc02c
commit
7ec2008e34
@ -594,6 +594,11 @@ func TestCompleteTask(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestCompleteTaskInvalidId(t *testing.T) {
|
||||||
|
e := startServer(t)
|
||||||
|
e.POST("/task/999/complete").Expect().Status(404)
|
||||||
|
}
|
||||||
|
|
||||||
func TestCompleteTaskAllowanceWeightsSumTo0(t *testing.T) {
|
func TestCompleteTaskAllowanceWeightsSumTo0(t *testing.T) {
|
||||||
e := startServer(t)
|
e := startServer(t)
|
||||||
taskId := createTestTaskWithAmount(e, 101)
|
taskId := createTestTaskWithAmount(e, 101)
|
||||||
@ -626,11 +631,6 @@ func TestCompleteTaskAllowanceWeightsSumTo0(t *testing.T) {
|
|||||||
allowances.Value(1).Object().Value("progress").Number().IsEqual(0)
|
allowances.Value(1).Object().Value("progress").Number().IsEqual(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCompleteTaskInvalidId(t *testing.T) {
|
|
||||||
e := startServer(t)
|
|
||||||
e.POST("/task/999/complete").Expect().Status(404)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCompleteAllowance(t *testing.T) {
|
func TestCompleteAllowance(t *testing.T) {
|
||||||
e := startServer(t)
|
e := startServer(t)
|
||||||
createTestTaskWithAmount(e, 100)
|
createTestTaskWithAmount(e, 100)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user