Skip to content

Commit

Permalink
Compare by type
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincantu committed Apr 10, 2024
1 parent 78d0e1d commit ff0b81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/crud/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestOptions(t *testing.T) {
}
f := func(elemental.Identifiable, elemental.Identifiable) error { return nil }
OptionPreWriteHook(f)(&cfg)
So(cfg.preHook, ShouldEqual, f)
So(cfg.preHook, ShouldHaveSameTypeAs, f)
})

Convey("OptionPostWriteHook should work ", t, func() {
Expand All @@ -25,7 +25,7 @@ func TestOptions(t *testing.T) {
}
f := func(elemental.Identifiable) {}
OptionPostWriteHook(f)(&cfg)
So(cfg.postHook, ShouldEqual, f)
So(cfg.postHook, ShouldHaveSameTypeAs, f)
})
}

Expand Down

0 comments on commit ff0b81e

Please sign in to comment.