Skip to content

Commit 44113ff

Browse files
committed
fix tests
1 parent c1df103 commit 44113ff

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

src/core/executors/IdentityOperationExecutor.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ describe('IdentityOperationExecutor', () => {
164164
expect(res7.retryAfterSeconds).toBeUndefined();
165165
expect(res7.operations).toMatchObject([
166166
{
167-
name: 'login-user',
168-
appId: APP_ID,
169-
onesignalId: ONESIGNAL_ID,
167+
_name: 'login-user',
168+
_appId: APP_ID,
169+
_onesignalId: ONESIGNAL_ID,
170170
},
171171
{
172-
name: 'refresh-user',
173-
appId: APP_ID,
174-
onesignalId: ONESIGNAL_ID,
172+
_name: 'refresh-user',
173+
_appId: APP_ID,
174+
_onesignalId: ONESIGNAL_ID,
175175
},
176176
]);
177177

src/core/executors/RefreshUserOperationExecutor.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ describe('RefreshUserOperationExecutor', () => {
163163
// Check subscription model updates
164164
const subscriptions = subscriptionModelStore.list();
165165
expect(subscriptions.length).toBe(1);
166-
expect(subscriptions[0]).toMatchObject({
166+
expect(subscriptions[0].toJSON()).toMatchObject({
167167
id: SUB_ID,
168168
notification_types: NotificationType.UserOptedOut,
169169
enabled: false,
@@ -262,14 +262,14 @@ describe('RefreshUserOperationExecutor', () => {
262262
retryAfterSeconds: 5,
263263
operations: [
264264
{
265-
name: 'login-user',
266-
appId: APP_ID,
267-
onesignalId: ONESIGNAL_ID,
265+
_name: 'login-user',
266+
_appId: APP_ID,
267+
_onesignalId: ONESIGNAL_ID,
268268
},
269269
{
270-
name: 'refresh-user',
271-
appId: APP_ID,
272-
onesignalId: ONESIGNAL_ID,
270+
_name: 'refresh-user',
271+
_appId: APP_ID,
272+
_onesignalId: ONESIGNAL_ID,
273273
},
274274
],
275275
});

src/core/executors/SubscriptionOperationExecutor.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,23 +294,23 @@ describe('SubscriptionOperationExecutor', () => {
294294
retryAfterSeconds: 5,
295295
operations: [
296296
{
297-
name: 'login-user',
298-
appId: APP_ID,
299-
onesignalId: ONESIGNAL_ID,
297+
_name: 'login-user',
298+
_appId: APP_ID,
299+
_onesignalId: ONESIGNAL_ID,
300300
},
301301
{
302-
name: 'create-subscription',
303-
appId: APP_ID,
304-
onesignalId: ONESIGNAL_ID,
302+
_name: 'create-subscription',
303+
_appId: APP_ID,
304+
_onesignalId: ONESIGNAL_ID,
305305
type: SubscriptionType.ChromePush,
306306
token: pushSubscription.token,
307307
enabled: true,
308308
subscriptionId: pushSubscription.id,
309309
},
310310
{
311-
name: 'refresh-user',
312-
appId: APP_ID,
313-
onesignalId: ONESIGNAL_ID,
311+
_name: 'refresh-user',
312+
_appId: APP_ID,
313+
_onesignalId: ONESIGNAL_ID,
314314
},
315315
],
316316
});

src/core/executors/UpdateUserOperationExecutor.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ describe('UpdateUserOperationExecutor', () => {
150150
retryAfterSeconds: 5,
151151
operations: [
152152
{
153-
name: 'login-user',
154-
appId: APP_ID,
155-
onesignalId: ONESIGNAL_ID,
153+
_name: 'login-user',
154+
_appId: APP_ID,
155+
_onesignalId: ONESIGNAL_ID,
156156
},
157157
{
158-
name: 'refresh-user',
159-
appId: APP_ID,
160-
onesignalId: ONESIGNAL_ID,
158+
_name: 'refresh-user',
159+
_appId: APP_ID,
160+
_onesignalId: ONESIGNAL_ID,
161161
},
162162
],
163163
});

0 commit comments

Comments
 (0)