Skip to content

Commit 49ab8b5

Browse files
authored
Update mock_test.go
1 parent dc0acb4 commit 49ab8b5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mock_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@ import (
77
)
88

99
type SomethingHappened struct {
10-
ocurredOn time.Time
10+
occurredOn time.Time
1111
}
1212

1313
func NewSomethingHappened() SomethingHappened {
1414
return SomethingHappened{time.Now()}
1515
}
1616

17-
func (e SomethingHappened) OcurredOn() time.Time {
18-
return e.ocurredOn
17+
func (e SomethingHappened) OccurredOn() time.Time {
18+
return e.occurredOn
1919
}
2020

2121
type RecipeCreated struct {
22-
ocurredOn time.Time
22+
occurredOn time.Time
2323
}
2424

25-
func (e RecipeCreated) OcurredOn() time.Time {
26-
return e.ocurredOn
25+
func (e RecipeCreated) OccurredOn() time.Time {
26+
return e.occurredOn
2727
}
2828

2929
type RecipeRated struct {
30-
ocurredOn time.Time
30+
occurredOn time.Time
3131
Rating int
3232
}
3333

34-
func (e RecipeRated) OcurredOn() time.Time {
35-
return e.ocurredOn
34+
func (e RecipeRated) OccurredOn() time.Time {
35+
return e.occurredOn
3636
}
3737

3838
type Recipe struct {

0 commit comments

Comments
 (0)