Skip to content

Commit de5c9f2

Browse files
committed
Test native notification wrapper
1 parent 79e1047 commit de5c9f2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/js/__tests__/stores/sound-notification.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,12 @@ describe('Tests for SoundNotificationStore', function () {
7474

7575
});
7676

77+
it('Should reopen gitify when a notification is clicked', function () {
78+
var nativeNotification = SoundNotificationStore.newNotification('Test', 'Hello, world!');
79+
80+
expect(nativeNotification.onclick.toString().indexOf('reopen-window') >= 0).toBe(true);
81+
82+
nativeNotification.onclick();
83+
});
84+
7785
});

0 commit comments

Comments
 (0)