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 setLocationShared with boolean', () => {
OneSignal.setLocationShared(true);
OneSignal.setLocationShared(false);
// $ExpectError
OneSignal.setLocationShared();
});
it("must call setLocationShared with boolean", () => {
OneSignal.setLocationShared(true);
OneSignal.setLocationShared(false);
// $ExpectError
OneSignal.setLocationShared();
});
it("must call setLocationShared with boolean", () => {
OneSignal.setLocationShared(true);
OneSignal.setLocationShared(false);
// $ExpectError
OneSignal.setLocationShared();
});
it('must call setLocationShared with boolean', () => {
OneSignal.setLocationShared(true);
OneSignal.setLocationShared(false);
// $ExpectError
OneSignal.setLocationShared();
});
it('must call setLocationShared with boolean', () => {
OneSignal.setLocationShared(true);
OneSignal.setLocationShared(false);
// $ExpectError
OneSignal.setLocationShared();
});
it("must call setLocationShared with boolean", () => {
OneSignal.setLocationShared(true);
OneSignal.setLocationShared(false);
// $ExpectError
OneSignal.setLocationShared();
});
initPushNotifications(){
console.log('setting up PushNotifications OneSignal SDK');
OneSignal.init(config.ONE_SIGNAL_APP_ID,{kOSSettingsKeyAutoPrompt : true});
OneSignal.inFocusDisplaying(0);
OneSignal.setLocationShared(false);
OneSignal.setExternalUserId(AnalyticsService.uniqueClientId);
}
bindNotificationListeners(){