Skip to content

Commit c8970b5

Browse files
committed
Fix another type error
1 parent 48a8f39 commit c8970b5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/actions/gdpr/@types/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface ConsentResponse {
5858
record: ConsentRecord
5959
}
6060

61-
export const CONSENT_PURPOSES = ['contact', 'marketing', 'analytics', 'downloads'] as const
61+
export const CONSENT_PURPOSES = ['contact', 'marketing', 'analytics', 'functional', 'downloads'] as const
6262

6363
export type ConsentPurpose = (typeof CONSENT_PURPOSES)[number]
6464

‎src/actions/gdpr/__tests__/constants.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { CONSENT_PURPOSES, CONSENT_SOURCES } from '../constants'
55
describe('gdpr constants', () => {
66
it('exposes expected consent purposes', () => {
77
expect(CONSENT_PURPOSES).toContain('contact')
8+
expect(CONSENT_PURPOSES).toContain('functional')
89
expect(CONSENT_PURPOSES).toContain('downloads')
910
})
1011

0 commit comments

Comments
 (0)