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 call setEmail without args', () => {
// $ExpectError
OneSignal.setEmail();
});
});
it("must throw error when call setEmail without args", () => {
// $ExpectError
OneSignal.setEmail();
});
});
it("must call setEmail with emailAuth code", () => {
OneSignal.setEmail("email", "emailAuthCode", (error: ?Error) => {});
OneSignal.setEmail("email", "emailAuthCode");
});
it('must call setEmail without emailAuth code', () => {
OneSignal.setEmail('email', (error: ?Error) => {});
OneSignal.setEmail('email');
});
it('must call setEmail with emailAuth code', () => {
OneSignal.setEmail('email', 'emailAuthCode', (error: ?Error) => {});
OneSignal.setEmail('email', 'emailAuthCode');
});
it("must call setEmail without emailAuth code", () => {
OneSignal.setEmail("email", (error: ?Error) => {});
OneSignal.setEmail("email");
});