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 throw error when LogLevel more than 6', () => {
// $ExpectError
OneSignal.setLogLevel(7, 0);
// $ExpectError
OneSignal.setLogLevel(0, 7);
// $ExpectError
OneSignal.setLogLevel();
});
});
it("must throw error when LogLevel more than 6", () => {
// $ExpectError
OneSignal.setLogLevel(7, 0);
// $ExpectError
OneSignal.setLogLevel(0, 7);
// $ExpectError
OneSignal.setLogLevel();
});
});
it("must call init with id and oprtions for IOS", () => {
var IOSSettings = {};
OneSignal.init("id");
OneSignal.init("id", IOSSettings);
// $ExpectError
OneSignal.init();
});
it("must call init with id and oprtions for IOS", () => {
var IOSSettings = {};
OneSignal.init("id");
OneSignal.init("id", IOSSettings);
// $ExpectError
OneSignal.init();
});
it("must call init with id and oprtions for IOS", () => {
var IOSSettings = {};
OneSignal.init("id");
OneSignal.init("id", IOSSettings);
// $ExpectError
OneSignal.init();
});
it('must call init with id and oprtions for IOS', () => {
var IOSSettings = {};
OneSignal.init('id');
OneSignal.init('id', IOSSettings);
// $ExpectError
OneSignal.init();
});
it("must call inFocusDisplaying with FocusBehaviors type", () => {
OneSignal.inFocusDisplaying(0);
OneSignal.inFocusDisplaying(1);
OneSignal.inFocusDisplaying(2);
// $ExpectError
OneSignal.inFocusDisplaying(3);
// $ExpectError
OneSignal.inFocusDisplaying();
});
});
it('must call inFocusDisplaying with FocusBehaviors type', () => {
OneSignal.inFocusDisplaying(0);
OneSignal.inFocusDisplaying(1);
OneSignal.inFocusDisplaying(2);
// $ExpectError
OneSignal.inFocusDisplaying(3);
// $ExpectError
OneSignal.inFocusDisplaying();
});
});
it("must call inFocusDisplaying with FocusBehaviors type", () => {
OneSignal.inFocusDisplaying(0);
OneSignal.inFocusDisplaying(1);
OneSignal.inFocusDisplaying(2);
// $ExpectError
OneSignal.inFocusDisplaying(3);
// $ExpectError
OneSignal.inFocusDisplaying();
});
});
it("must call inFocusDisplaying with FocusBehaviors type", () => {
OneSignal.inFocusDisplaying(0);
OneSignal.inFocusDisplaying(1);
OneSignal.inFocusDisplaying(2);
// $ExpectError
OneSignal.inFocusDisplaying(3);
// $ExpectError
OneSignal.inFocusDisplaying();
});
});