Skip to content

Commit bb74f7b

Browse files
Fix typo on mock/client.go and mock/client_test.go
1 parent 804c61e commit bb74f7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mock/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func NewMockHttpClient(options ...MockHttpClientOption) *http.Client {
135135
}
136136
}
137137

138-
func MustMarshall(v interface{}) []byte {
138+
func MustMarshal(v interface{}) []byte {
139139
b, err := json.Marshal(v)
140140

141141
if err == nil {

mock/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ func TestMockClient(t *testing.T) {
1313
mockedHttpClient := NewMockHttpClient(
1414
WithRequestMatch(
1515
RequestMatchUsersGet,
16-
MustMarshall(github.User{
16+
MustMarshal(github.User{
1717
Name: github.String("foobar"),
1818
}),
1919
),
2020
WithRequestMatch(
2121
RequestMatchOrganizationsList,
22-
MustMarshall([]github.Organization{
22+
MustMarshal([]github.Organization{
2323
{
2424
Name: github.String("foobar123thisorgwasmocked"),
2525
},

0 commit comments

Comments
 (0)