mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-04-28 20:35:03 +08:00
Clean logs
This commit is contained in:
@@ -61,7 +61,6 @@ class NotificationsExampleApp extends Component {
|
||||
}
|
||||
|
||||
onNotificationReceivedForeground(notification) {
|
||||
alert(JSON.stringify(notification));
|
||||
console.log('Notification Received Foreground: ' + JSON.stringify(notification));
|
||||
this.setState({
|
||||
notifications: [...this.state.notifications, notification]
|
||||
|
||||
@@ -35,7 +35,6 @@ describe('Notifications-Android', () => {
|
||||
it('should assign callback to native event upon listener registration', () => {
|
||||
expect(deviceEventEmitterListenerStub).toHaveBeenCalledTimes(0);
|
||||
const userListener = () => {};
|
||||
console.log(libUnderTest);
|
||||
libUnderTest.NotificationsAndroid.setRegistrationTokenUpdateListener(userListener);
|
||||
|
||||
expect(deviceEventEmitterListenerStub).toHaveBeenCalledWith('remoteNotificationsRegistered', userListener);
|
||||
|
||||
Reference in New Issue
Block a user