Commit 38255d4f authored by yogevbd's avatar yogevbd

Clean logs

parent e819748f
...@@ -61,7 +61,6 @@ class NotificationsExampleApp extends Component { ...@@ -61,7 +61,6 @@ class NotificationsExampleApp extends Component {
} }
onNotificationReceivedForeground(notification) { onNotificationReceivedForeground(notification) {
alert(JSON.stringify(notification));
console.log('Notification Received Foreground: ' + JSON.stringify(notification)); console.log('Notification Received Foreground: ' + JSON.stringify(notification));
this.setState({ this.setState({
notifications: [...this.state.notifications, notification] notifications: [...this.state.notifications, notification]
......
...@@ -35,7 +35,6 @@ describe('Notifications-Android', () => { ...@@ -35,7 +35,6 @@ describe('Notifications-Android', () => {
it('should assign callback to native event upon listener registration', () => { it('should assign callback to native event upon listener registration', () => {
expect(deviceEventEmitterListenerStub).toHaveBeenCalledTimes(0); expect(deviceEventEmitterListenerStub).toHaveBeenCalledTimes(0);
const userListener = () => {}; const userListener = () => {};
console.log(libUnderTest);
libUnderTest.NotificationsAndroid.setRegistrationTokenUpdateListener(userListener); libUnderTest.NotificationsAndroid.setRegistrationTokenUpdateListener(userListener);
expect(deviceEventEmitterListenerStub).toHaveBeenCalledWith('remoteNotificationsRegistered', userListener); expect(deviceEventEmitterListenerStub).toHaveBeenCalledWith('remoteNotificationsRegistered', userListener);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment