From ff0b81ef170a352779d48a1e01090a36f27a5333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Cant=C3=BA?= Date: Wed, 10 Apr 2024 08:53:19 -0700 Subject: [PATCH] Compare by type --- pkgs/crud/options_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/crud/options_test.go b/pkgs/crud/options_test.go index 346f9af..1b82157 100644 --- a/pkgs/crud/options_test.go +++ b/pkgs/crud/options_test.go @@ -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() { @@ -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) }) }