Skip to content

Commit

Permalink
chore: correct indent in README code block
Browse files Browse the repository at this point in the history
Prior to this change, the indentation of a nested code block had been
corrupted.

This change ensures there are spaces to indent the ordered list and tabs
to indent the code within the code block.
  • Loading branch information
au-phiware committed Dec 22, 2023
1 parent da222c7 commit 283d082
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ go generate
```go
func TestObject(t *testing.T) {
m := mock.New(t,
mock.ExpectGet(func(t testing.TB, key string) (any, bool) {
// Define your mock's behaviour
}),
mock.ExpectPut(func(t testing.TB, key string, value any) error {
// Define your mock's behaviour
}),
)
mock.ExpectGet(func(t testing.TB, key string) (any, bool) {
// Define your mock's behaviour
}),
mock.ExpectPut(func(t testing.TB, key string, value any) error {
// Define your mock's behaviour
}),
)

// Use the mock instance in your test

// Assert that all expected methods were called
mock.AssertExpectedCalls(t, m)
mock.AssertExpectedCalls(t, m)
}
```

Expand Down

0 comments on commit 283d082

Please sign in to comment.