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 setLogLevel with supported nsLogLevel", () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(1, 0);
OneSignal.setLogLevel(2, 0);
OneSignal.setLogLevel(3, 0);
OneSignal.setLogLevel(4, 0);
OneSignal.setLogLevel(5, 0);
OneSignal.setLogLevel(6, 0);
});
it('must call setLogLevel with supported nsLogLevel', () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(1, 0);
OneSignal.setLogLevel(2, 0);
OneSignal.setLogLevel(3, 0);
OneSignal.setLogLevel(4, 0);
OneSignal.setLogLevel(5, 0);
OneSignal.setLogLevel(6, 0);
});
it('must call setLogLevel with supported visualLogLevel', () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(0, 1);
OneSignal.setLogLevel(0, 2);
OneSignal.setLogLevel(0, 3);
OneSignal.setLogLevel(0, 4);
OneSignal.setLogLevel(0, 5);
OneSignal.setLogLevel(0, 6);
});
it('must call setLogLevel with supported visualLogLevel', () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(0, 1);
OneSignal.setLogLevel(0, 2);
OneSignal.setLogLevel(0, 3);
OneSignal.setLogLevel(0, 4);
OneSignal.setLogLevel(0, 5);
OneSignal.setLogLevel(0, 6);
});
it("must call setLogLevel with supported visualLogLevel", () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(0, 1);
OneSignal.setLogLevel(0, 2);
OneSignal.setLogLevel(0, 3);
OneSignal.setLogLevel(0, 4);
OneSignal.setLogLevel(0, 5);
OneSignal.setLogLevel(0, 6);
});
it('must call setLogLevel with supported nsLogLevel', () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(1, 0);
OneSignal.setLogLevel(2, 0);
OneSignal.setLogLevel(3, 0);
OneSignal.setLogLevel(4, 0);
OneSignal.setLogLevel(5, 0);
OneSignal.setLogLevel(6, 0);
});
it('must call setLogLevel with supported visualLogLevel', () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(0, 1);
OneSignal.setLogLevel(0, 2);
OneSignal.setLogLevel(0, 3);
OneSignal.setLogLevel(0, 4);
OneSignal.setLogLevel(0, 5);
OneSignal.setLogLevel(0, 6);
});
it("must call setLogLevel with supported visualLogLevel", () => {
OneSignal.setLogLevel(0, 0);
OneSignal.setLogLevel(0, 1);
OneSignal.setLogLevel(0, 2);
OneSignal.setLogLevel(0, 3);
OneSignal.setLogLevel(0, 4);
OneSignal.setLogLevel(0, 5);
OneSignal.setLogLevel(0, 6);
});