mirror of https://github.com/stretchr/testify.git
docs: Fix a typo
parent
f390dcf405
commit
dcb39ac4d8
|
@ -132,7 +132,7 @@ func (c *Call) After(d time.Duration) *Call {
|
|||
// mocking a method such as unmarshalers that takes a pointer to a struct and
|
||||
// sets properties in such struct
|
||||
//
|
||||
// Mock.On("Unmarshal", AnythingOfType("*map[string]interface{}").Return().Run(function(args Arguments) {
|
||||
// Mock.On("Unmarshal", AnythingOfType("*map[string]interface{}").Return().Run(func(args Arguments) {
|
||||
// arg := args.Get(0).(*map[string]interface{})
|
||||
// arg["foo"] = "bar"
|
||||
// })
|
||||
|
|
Loading…
Reference in New Issue