From 5adb33b716d88407b1bb82f14dc7ad8ed4e8a7b7 Mon Sep 17 00:00:00 2001 From: Ankit Tiwari Date: Sun, 5 May 2024 01:18:51 +0530 Subject: [PATCH] fix: PR changes --- recipe/session/sessionUtils_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipe/session/sessionUtils_test.go b/recipe/session/sessionUtils_test.go index 0789895f..fdcf9387 100644 --- a/recipe/session/sessionUtils_test.go +++ b/recipe/session/sessionUtils_test.go @@ -23,6 +23,12 @@ import ( ) func TestNormaliseSessionScope(t *testing.T) { + t.Run("test with empty string", func(t *testing.T) { + result, err := normaliseSessionScopeOrThrowError("") + assert.NoError(t, err) + assert.Equal(t, "", *result) + }) + t.Run("test with leading dot", func(t *testing.T) { result, err := normaliseSessionScopeOrThrowError(".example.com") assert.NoError(t, err)