Skip to content

Commit

Permalink
Fix argument type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Sep 24, 2024
1 parent 2e80750 commit 3dd93f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ The format is based on [Keep a Changelog], and this project adheres to
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html

## [0.17.2] - 2024-09-25

### Fixed

- Fix argument type of `ToRecordEvent()` and `ToRecordEventOfType()`.

## [0.17.1] - 2024-09-25

### Fixed
Expand Down Expand Up @@ -465,6 +471,7 @@ guide][0.11.0 migration guide] for detailed instructions.
[0.16.0]: https://github.com/dogmatiq/testkit/releases/tag/v0.16.0
[0.17.0]: https://github.com/dogmatiq/testkit/releases/tag/v0.17.0
[0.17.1]: https://github.com/dogmatiq/testkit/releases/tag/v0.17.1
[0.17.2]: https://github.com/dogmatiq/testkit/releases/tag/v0.17.2

<!-- contributors -->

Expand Down
2 changes: 1 addition & 1 deletion expectation.message.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func ToExecuteCommand(m dogma.Command) Expectation {

// ToRecordEvent returns an expectation that passes if an event is recorded that
// is equal to m.
func ToRecordEvent(m dogma.Command) Expectation {
func ToRecordEvent(m dogma.Event) Expectation {
if m == nil {
panic("ToRecordEvent(<nil>): message must not be nil")
}
Expand Down
2 changes: 1 addition & 1 deletion expectation.messagetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func ToRecordEventType[T dogma.Event]() Expectation {
// same type as m is recorded.
//
// Deprecated: Use [ToRecordEventType] instead.
func ToRecordEventOfType(m dogma.Command) Expectation {
func ToRecordEventOfType(m dogma.Event) Expectation {
if m == nil {
panic("ToRecordEventOfType(<nil>): message must not be nil")
}
Expand Down

0 comments on commit 3dd93f1

Please sign in to comment.