Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('must call setSubscription with boolean', () => {
OneSignal.setSubscription(true);
OneSignal.setSubscription(false);
// $ExpectError
OneSignal.setSubscription();
});
it('must call inFocusDisplaying with FocusBehaviors type', () => {
it("must call setSubscription with boolean", () => {
OneSignal.setSubscription(true);
OneSignal.setSubscription(false);
// $ExpectError
OneSignal.setSubscription();
});
it("must call inFocusDisplaying with FocusBehaviors type", () => {
it('must call setSubscription with boolean', () => {
OneSignal.setSubscription(true);
OneSignal.setSubscription(false);
// $ExpectError
OneSignal.setSubscription();
});
it('must call inFocusDisplaying with FocusBehaviors type', () => {
it("must call setSubscription with boolean", () => {
OneSignal.setSubscription(true);
OneSignal.setSubscription(false);
// $ExpectError
OneSignal.setSubscription();
});
it("must call inFocusDisplaying with FocusBehaviors type", () => {
it("must call setSubscription with boolean", () => {
OneSignal.setSubscription(true);
OneSignal.setSubscription(false);
// $ExpectError
OneSignal.setSubscription();
});
it("must call inFocusDisplaying with FocusBehaviors type", () => {
onPress={() => {
stats.userTurnedOnNotifications();
if (Platform.OS === "ios") {
OneSignal.registerForPushNotifications();
}
OneSignal.setSubscription(true);
onContinue();
}}
/>
function enable(): EnableNotificationsAction {
OneSignal.setSubscription(true)
return {type: ENABLE}
}
onPress={() => {
userTurnedOnNotifications();
if (Platform.OS === "ios") {
OneSignal.registerForPushNotifications();
}
OneSignal.setSubscription(true);
this.onContinue();
}}
/>
onPress={() => {
if (Platform.OS === "ios") {
OneSignal.registerForPushNotifications();
}
OneSignal.setSubscription(true);
this.setState({
areNotificationsOn: true,
});
stats.userTurnedOnNotifications();
}}
/>
function disable(): DisableNotificationsAction {
OneSignal.setSubscription(false)
return {type: DISABLE}
}