Skip to content

Commit bdec8d1

Browse files
committed
Remove debug logging from cookies consent test
1 parent 744d0b9 commit bdec8d1

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎src/components/Cookies/Consent/__tests__/cookies.spec.ts‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ describe(`Consent cookies handlers work`, () => {
4343
// With commonSetup, we have clean state - no cookies exist
4444
const necessaryCookie = getConsentCookie('necessary')
4545

46-
// Debug: Log what cookies were actually set
47-
console.log('All cookies:', document.cookie)
48-
console.log('necessary:', necessaryCookie)
49-
console.log('functional:', getCookie('consent_functional'))
50-
console.log('analytics:', getCookie('consent_analytics'))
51-
5246
// After getConsentCookie, cookies should be initialized
5347
// necessary=true (always required)
5448
expect(necessaryCookie).toBe('true')
@@ -73,16 +67,7 @@ describe(`Consent cookies handlers work`, () => {
7367
setAllConsentCookies()
7468
expect(document.cookie).toBeTruthy()
7569

76-
console.log('Before removal:', document.cookie)
7770
removeConsentCookies()
78-
console.log('After removal:', document.cookie)
79-
80-
// Cookies should be removed
81-
const necessary = getCookie('consent_necessary')
82-
const analytics = getCookie('consent_analytics')
83-
84-
console.log('After removal - necessary:', necessary)
85-
console.log('After removal - analytics:', analytics)
8671

8772
// The removeConsentCookies function removes cookies, but they may be coming back
8873
// from persistent storage. This test may need to also clear localStorage.

0 commit comments

Comments
 (0)