Skip to content

Commit 55e9843

Browse files
committed
fix typo
1 parent a3323ed commit 55e9843

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

__test__/support/environment/TestEnvironmentHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const setupSubModelStore = async ({
9090
await setPushToken(pushModel.token);
9191
OneSignal.coreDirector.subscriptionModelStore.replaceAll(
9292
[pushModel],
93-
ModelChangeTags.NO_PROPOGATE,
93+
ModelChangeTags.NO_PROPAGATE,
9494
);
9595

9696
return pushModel;

__test__/support/helpers/setup.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const setupIdentityModel = async (
6565
newIdentityModel.onesignalId = onesignalID;
6666
OneSignal.coreDirector.identityModelStore.replace(
6767
newIdentityModel,
68-
ModelChangeTags.NO_PROPOGATE,
68+
ModelChangeTags.NO_PROPAGATE,
6969
);
7070
};
7171

@@ -79,7 +79,7 @@ export const setupPropertiesModel = async (
7979
newPropertiesModel.onesignalId = onesignalID;
8080
OneSignal.coreDirector.propertiesModelStore.replace(
8181
newPropertiesModel,
82-
ModelChangeTags.NO_PROPOGATE,
82+
ModelChangeTags.NO_PROPAGATE,
8383
);
8484

8585
// wait for db to be updated
@@ -96,7 +96,7 @@ export const updateIdentityModel = async <
9696
value?: IdentitySchema[T],
9797
) => {
9898
const identityModel = OneSignal.coreDirector.getIdentityModel();
99-
identityModel.setProperty(property, value, ModelChangeTags.NO_PROPOGATE);
99+
identityModel.setProperty(property, value, ModelChangeTags.NO_PROPAGATE);
100100
};
101101

102102
/**
@@ -112,7 +112,7 @@ export const updatePropertiesModel = async <
112112
value?: PropertiesSchema[T],
113113
) => {
114114
const propertiesModel = OneSignal.coreDirector.getPropertiesModel();
115-
propertiesModel.setProperty(property, value, ModelChangeTags.NO_PROPOGATE);
115+
propertiesModel.setProperty(property, value, ModelChangeTags.NO_PROPAGATE);
116116
};
117117

118118
/**
@@ -127,7 +127,7 @@ export const setupSubscriptionModel = async (
127127
subscriptionModel.token = token || '';
128128
OneSignal.coreDirector.subscriptionModelStore.replaceAll(
129129
[subscriptionModel],
130-
ModelChangeTags.NO_PROPOGATE,
130+
ModelChangeTags.NO_PROPAGATE,
131131
);
132132
};
133133

src/core/executors/LoginUserOperationExecutor.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ describe('LoginUserOperationExecutor', () => {
169169
await setPushToken(PUSH_TOKEN);
170170

171171
const subscriptionModel = new SubscriptionModel();
172-
subscriptionModel.setProperty('id', SUB_ID, ModelChangeTags.NO_PROPOGATE);
172+
subscriptionModel.setProperty('id', SUB_ID, ModelChangeTags.NO_PROPAGATE);
173173
subscriptionModelStore.add(
174174
subscriptionModel,
175-
ModelChangeTags.NO_PROPOGATE,
175+
ModelChangeTags.NO_PROPAGATE,
176176
);
177177

178178
// perform operations with old onesignal id

src/core/executors/RefreshUserOperationExecutor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ describe('RefreshUserOperationExecutor', () => {
183183
pushSubModel.token = PUSH_TOKEN;
184184
pushSubModel.notification_types = NotificationType.Subscribed;
185185

186-
subscriptionModelStore.add(pushSubModel, ModelChangeTags.NO_PROPOGATE);
186+
subscriptionModelStore.add(pushSubModel, ModelChangeTags.NO_PROPAGATE);
187187
await setPushToken(PUSH_TOKEN);
188188

189189
const executor = getExecutor();

src/core/types/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const ModelChangeTags = {
99
/**
1010
* A change was performed that should *not* be propogated to the backend.
1111
*/
12-
NO_PROPOGATE: 'NO_PROPOGATE',
12+
NO_PROPAGATE: 'NO_PROPAGATE',
1313

1414
/**
1515
* A change was performed through the backend hydrating the model.

src/onesignal/OneSignal.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('OneSignal', () => {
6767
beforeEach(async () => {
6868
OneSignal.coreDirector.subscriptionModelStore.replaceAll(
6969
[],
70-
ModelChangeTags.NO_PROPOGATE,
70+
ModelChangeTags.NO_PROPAGATE,
7171
);
7272
setConsentRequired(false);
7373
setupPropertiesModel();
@@ -619,7 +619,7 @@ describe('OneSignal', () => {
619619

620620
OneSignal.coreDirector.subscriptionModelStore.replaceAll(
621621
[],
622-
ModelChangeTags.NO_PROPOGATE,
622+
ModelChangeTags.NO_PROPAGATE,
623623
);
624624

625625
// wait for db to be updated
@@ -685,7 +685,7 @@ describe('OneSignal', () => {
685685
setGetUserResponse();
686686
OneSignal.coreDirector.subscriptionModelStore.replaceAll(
687687
[],
688-
ModelChangeTags.NO_PROPOGATE,
688+
ModelChangeTags.NO_PROPAGATE,
689689
);
690690
setPushToken('');
691691
subscribeFcmFromPageSpy.mockImplementation(

src/onesignal/User.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class User {
3535
identityModel.setProperty(
3636
IdentityConstants.ONESIGNAL_ID,
3737
onesignalId,
38-
ModelChangeTags.NO_PROPOGATE,
38+
ModelChangeTags.NO_PROPAGATE,
3939
);
4040
}
4141
}

src/onesignal/UserNamespace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ describe('UserNamespace', () => {
446446
identityModel.setProperty(
447447
'onesignal_id',
448448
ONESIGNAL_ID,
449-
ModelChangeTags.NO_PROPOGATE,
449+
ModelChangeTags.NO_PROPAGATE,
450450
);
451451

452452
// should validate properties

0 commit comments

Comments
 (0)