From e3eeba19f090f38712b4720e2f928d503f0d92d2 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 17 Apr 2025 14:20:52 -0600 Subject: refactor: remove Key suffix from context keys --- app/controllers/dashboard/controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/dashboard/controller_test.go') diff --git a/app/controllers/dashboard/controller_test.go b/app/controllers/dashboard/controller_test.go index b8199c4..01e3ff6 100644 --- a/app/controllers/dashboard/controller_test.go +++ b/app/controllers/dashboard/controller_test.go @@ -30,7 +30,7 @@ func TestController(t *testing.T) { t.Run("when authenticated", func(t *testing.T) { t.Run("renders a dashboard page", func(t *testing.T) { - ctx := key.CurrentUserKey.With(t.Context(), &domain.User{}) + ctx := key.CurrentUser.With(t.Context(), &domain.User{}) r, w := test.RequestResponse("GET", "/dashboard", test.WithContext(ctx)) mux.ServeHTTP(w, r) -- cgit v1.2.3