Skip to content

Commit

Permalink
continues to remove reset
Browse files Browse the repository at this point in the history
  • Loading branch information
uc-franciscocunha committed May 6, 2024
1 parent e45155b commit eb4436f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/Usercentrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,6 @@ export const Usercentrics = {
RNUsercentricsModule.track(event);
},

/**
* @deprecated This method will be removed in the next version. Please consider using the clearUserSession() method instead
*/
reset: () => {
RNUsercentricsModule.reset()
},

clearUserSession: async (): Promise<UsercentricsReadyStatus> => {
await RNUsercentricsModule.isReady();
return RNUsercentricsModule.clearUserSession();
Expand Down
6 changes: 0 additions & 6 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,6 @@ describe('Test Usercentrics Module', () => {
expect(spy).toHaveBeenCalledTimes(1);
})

test('testReset', async () => {
Usercentrics.reset();
let spy = jest.spyOn(RNUsercentricsModule, "reset")
expect(spy).toHaveBeenCalledTimes(1)
})

test('testGetAdditionalConsentModeData', async () => {
const response: AdditionalConsentModeData = {
acString: '2~43.46.55~dv.',
Expand Down

0 comments on commit eb4436f

Please sign in to comment.