fix: unittest

This commit is contained in:
debugtalk
2022-02-18 21:01:48 +08:00
parent 0f3dd1b6d6
commit c6ce47ba89
4 changed files with 72 additions and 73 deletions

View File

@@ -101,7 +101,7 @@ func TestMakeTestCase(t *testing.T) {
if !assert.Equal(t, "status_code", tCase.TestSteps[0].Validators[0].Check) {
t.Fail()
}
if !assert.Equal(t, "headers.Content-Type", tCase.TestSteps[0].Validators[1].Check) {
if !assert.Equal(t, "headers.\"Content-Type\"", tCase.TestSteps[0].Validators[1].Check) {
t.Fail()
}
if !assert.Equal(t, "body.url", tCase.TestSteps[0].Validators[2].Check) {