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 deleteTag only with one string argument', () => {
OneSignal.deleteTag('key');
// $ExpectError
OneSignal.deleteTag();
});
});
it('must call deleteTag only with one string argument', () => {
OneSignal.deleteTag('key');
// $ExpectError
OneSignal.deleteTag();
});
});
it("must call deleteTag only with one string argument", () => {
OneSignal.deleteTag("key");
// $ExpectError
OneSignal.deleteTag();
});
});
it("must call deleteTag only with one string argument", () => {
OneSignal.deleteTag("key");
// $ExpectError
OneSignal.deleteTag();
});
});
export function unsubscribe(
channelName: NotificationChannelName,
): ChannelUnsubscribeAction {
OneSignal.deleteTag(channelName)
return {type: CHANNEL_UNSUBSCRIBE, payload: channelName}
}