Skip to content

Commit

Permalink
Update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Dec 24, 2021
1 parent c587a51 commit 97c9a57
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion pkg/optimization/optimization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,26 @@ func TestMakeRequestQuery(t *testing.T) {
payload: "dalfox",
ptype: "",
pAction: "",
pEncode: "",
pEncode: "htmlEncode",
options: model.Options{
Data: "abcd=1234",
Cookie: "abcd=1234",
Header: []string{
"X-API-Key: 1234",
},
Method: "POST",
},
},
},
{
name: "TestMakeRequestQuery2",
args: args{
target: "https://www.hahwul.com",
param: "param",
payload: "dalfox",
ptype: "FORM",
pAction: "toAppend",
pEncode: "urlEncode",
options: model.Options{
Data: "abcd=1234",
Cookie: "abcd=1234",
Expand Down

0 comments on commit 97c9a57

Please sign in to comment.