Skip to content

Commit

Permalink
updated func signature
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jan 12, 2019
1 parent 61cc552 commit 166fc77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ func TestContext_NewRequest(t *testing.T) {
manager := endly.New()
context := manager.NewContext(toolbox.NewContext())
{
request, err := context.NewRequest("nop", "nop")
request, err := context.NewRequest("nop", "nop", map[string]interface{}{})
if assert.Nil(t, err) {
assert.NotNil(t, request)
}
}
{
_, err := context.NewRequest("invalid", "nop")
_, err := context.NewRequest("invalid", "nop", nil)
assert.NotNil(t, err)
}
{
_, err := context.NewRequest("nop", "abc")
_, err := context.NewRequest("nop", "abc", nil)
assert.NotNil(t, err)
}

Expand Down

0 comments on commit 166fc77

Please sign in to comment.