Skip to content

Commit 760fff2

Browse files
author
Emmanouil Konstantinidis
committed
Fix tests
1 parent c8df74a commit 760fff2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/js/__tests__/components/notification.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ describe('Test for Notification Component', function () {
2525
return {};
2626
}
2727
};
28+
},
29+
sendChannel: function () {
30+
return;
2831
}
2932
};
3033
};

src/js/components/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var Notifications = React.createClass({
124124
</Loading>
125125
{errors}
126126
{notifications}
127-
{notifications.length ? (
127+
{notifications && notifications.length ? (
128128
<div className='fork' onClick={this.openBrowser}>
129129
<i className='fa fa-github' /> Star Gitify on GitHub
130130
</div>

0 commit comments

Comments
 (0)