Skip to content

Commit

Permalink
feat(add-consent): test for index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
UralKrc committed Apr 10, 2024
1 parent 2db9bf2 commit efc14ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/consent/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as consentModule from './index';

describe('consent', () => {
it('should have the expected methods', () => {
expect(consentModule.consent).toEqual({
get: expect.any(Function),
set: expect.any(Function),
getAll: expect.any(Function),
setAll: expect.any(Function),
getAllCheckboxes: expect.any(Function),
setCheckboxes: expect.any(Function),
setAllCheckboxes: expect.any(Function),
sendQueuedEvents: expect.any(Function),
});
});
});

0 comments on commit efc14ed

Please sign in to comment.