Skip to content

Commit 25bad56

Browse files
author
Emmanouil Konstantinidis
committed
Mock Audio
1 parent 35af639 commit 25bad56

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"grunt-contrib-copy": "=0.8.0",
134134
"grunt-contrib-less": "=1.0.1",
135135
"grunt-contrib-watch": "=0.6.1",
136-
"jest-cli": "=0.4.5",
136+
"jest-cli": "=0.4.12",
137137
"jscs": "^1.13.1",
138138
"jshint-stylish": "=1.0.2",
139139
"jsxhint": "=0.15.0",

src/js/__tests__/stores/notifications.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ describe('Tests for NotificationsStore', function () {
3030
}
3131
};
3232

33+
// Mock Audio
34+
window.Audio = function (src) {
35+
console.log('Loading Audio: ' + src);
36+
return {
37+
play: function () {}
38+
};
39+
};
40+
3341
Actions = require('../../actions/actions.js');
3442
apiRequests = require('../../utils/api-requests.js');
3543
NotificationsStore = require('../../stores/notifications.js');

0 commit comments

Comments
 (0)