@@ -2,7 +2,7 @@ import type { Siren } from "@sirenapp/js-sdk";
2
2
3
3
import { useSiren } from "../../src" ;
4
4
import * as sirenProvider from "../../src/components/SirenProvider" ;
5
- import { errorMap , VerificationStatus } from "../../src/utils/constants" ;
5
+ import { errorMap } from "../../src/utils/constants" ;
6
6
7
7
8
8
// Mock the CSS files to avoid Jest error
@@ -91,7 +91,6 @@ describe("useSiren hook", () => {
91
91
deleteById : jest . fn ( async ( ) => ActionResponse ) ,
92
92
deleteByDate : jest . fn ( async ( ) => ActionResponse ) ,
93
93
markAllAsViewed : jest . fn ( async ( ) => MarkAsViewedResponse ) ,
94
- verifyToken : jest . fn ( ) ,
95
94
fetchUnviewedNotificationsCount : jest . fn ( ) ,
96
95
fetchAllNotifications : jest . fn ( ) ,
97
96
startRealTimeFetch : jest . fn ( ) ,
@@ -101,7 +100,6 @@ describe("useSiren hook", () => {
101
100
it ( "should call siren.markAsReadById and return error" , async ( ) => {
102
101
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
103
102
siren : mockSirenCore as Siren ,
104
- verificationStatus : VerificationStatus . SUCCESS ,
105
103
id : ''
106
104
} ) ;
107
105
@@ -127,7 +125,6 @@ describe("useSiren hook", () => {
127
125
// Mock useSirenContext
128
126
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
129
127
siren : mockCore as Siren ,
130
- verificationStatus : VerificationStatus . SUCCESS ,
131
128
id : ''
132
129
} ) ;
133
130
@@ -147,7 +144,6 @@ describe("useSiren hook", () => {
147
144
// Mock useSirenContext
148
145
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
149
146
siren : mockSirenCore as Siren ,
150
- verificationStatus : VerificationStatus . SUCCESS ,
151
147
id : ''
152
148
} ) ;
153
149
@@ -163,7 +159,6 @@ describe("useSiren hook", () => {
163
159
164
160
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
165
161
siren : mockSirenCore as Siren ,
166
- verificationStatus : VerificationStatus . SUCCESS ,
167
162
id : ''
168
163
} ) ;
169
164
@@ -183,7 +178,6 @@ describe("useSiren hook", () => {
183
178
// Mock useSirenContext
184
179
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
185
180
siren : mockSirenCore as Siren ,
186
- verificationStatus : VerificationStatus . SUCCESS ,
187
181
id : ''
188
182
} ) ;
189
183
@@ -202,7 +196,6 @@ describe("useSiren hook", () => {
202
196
203
197
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
204
198
siren : mockSirenCore as Siren ,
205
- verificationStatus : VerificationStatus . SUCCESS ,
206
199
id : ''
207
200
} ) ;
208
201
@@ -218,7 +211,6 @@ describe("useSiren hook", () => {
218
211
// Mock useSirenContext
219
212
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
220
213
siren : mockSirenCore as Siren ,
221
- verificationStatus : VerificationStatus . SUCCESS ,
222
214
id : ''
223
215
} ) ;
224
216
@@ -234,7 +226,6 @@ describe("useSiren hook", () => {
234
226
235
227
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
236
228
siren : mockSirenCore as Siren ,
237
- verificationStatus : VerificationStatus . SUCCESS ,
238
229
id : ''
239
230
} ) ;
240
231
@@ -253,7 +244,6 @@ describe("useSiren hook", () => {
253
244
254
245
jest . spyOn ( sirenProvider , "useSirenContext" ) . mockReturnValue ( {
255
246
siren : mockSirenCore as Siren ,
256
- verificationStatus : VerificationStatus . SUCCESS ,
257
247
id : ''
258
248
} ) ;
259
249
0 commit comments