diff --git a/api_test.go b/api_test.go index 415cee9..7e29b76 100644 --- a/api_test.go +++ b/api_test.go @@ -74,4 +74,5 @@ func TestCreateApiWithNonStruct(t *testing.T) { _, _, err = modusdb.Create[*User](context.Background(), db1, &user) require.Error(t, err) + require.Equal(t, "expected struct, got ptr", err.Error()) }