Skip to content

Commit eef99c8

Browse files
author
Emmanouil Konstantinidis
committed
Mocks for Audio & notifcations
1 parent b84c909 commit eef99c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/js/__tests__/stores/notifications.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ describe('Tests for NotificationsStore', function () {
3333
}
3434
};
3535

36+
// Mock Audio
37+
window.Audio = function () {
38+
return {
39+
play: function () {}
40+
};
41+
};
42+
43+
// Mock Notifications
44+
window.Notification = function () {
45+
return {
46+
onClick: function () {}
47+
};
48+
};
49+
3650
Actions = require('../../actions/actions.js');
3751
apiRequests = require('../../utils/api-requests.js');
3852
NotificationsStore = require('../../stores/notifications.js');

0 commit comments

Comments
 (0)