From 4eebd6f80c290c844735b9dc0a2bbabb5a0cb5bf Mon Sep 17 00:00:00 2001 From: Michael Kochell <6913320+mickmister@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:47:45 -0400 Subject: [PATCH] change AnythingOfTypeArgument to AnythingOfType (#117) --- server/service/notification_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server/service/notification_test.go b/server/service/notification_test.go index 378ecf1..36e6b98 100644 --- a/server/service/notification_test.go +++ b/server/service/notification_test.go @@ -111,16 +111,16 @@ func TestGetNotificationsChannelIDs(t *testing.T) { defer monkey.UnpatchAll() mockAPI := baseMock() mockAPI.On("LogError", - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string"), - mock.AnythingOfTypeArgument("string")).Return(nil) + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string"), + mock.AnythingOfType("string")).Return(nil) mockAPI.On("CreatePost", mock.AnythingOfType(model.Post{}.Type)).Return(&model.Post{}, nil) monkey.Patch(GetSubscriptionsByURLSpaceKey, func(url, spaceKey string) (serializer.StringArrayMap, error) { return val.urlSpaceKeyCombinationSubscriptions, nil