mirror of
https://github.com/stretchr/testify.git
synced 2025-04-27 13:13:19 +00:00
docs: Fix a typo
This commit is contained in:
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…
x
Reference in New Issue
Block a user