Skip to content

Commit

Permalink
refactor(helper): Adjusted the return values of some methods in `help…
Browse files Browse the repository at this point in the history
…er.Proxy`

Signed-off-by: Flc゛ <four_leaf_clover@foxmail.com>
  • Loading branch information
flc1125 committed Mar 13, 2024
1 parent 45296bb commit fedd4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestProxy_Point(t *testing.T) {
mock2 := proxy.Tap(func(p *proxyMock) {
p.Name = "bar"
p.Age = 18
})
}).Target()
assert.Equal(t, "bar", proxy.target.Name)
assert.Equal(t, 18, proxy.target.Age)
assert.Equal(t, "bar", mock.Name)
Expand Down

0 comments on commit fedd4ba

Please sign in to comment.