We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d4fc5 commit a13e511Copy full SHA for a13e511
src/js/__tests__/__mocks__/shell.js
@@ -0,0 +1,3 @@
1
+module.exports = {
2
+ openExternal: jest.genMockFunction()
3
+};
src/js/__tests__/components/footer.js
@@ -13,7 +13,11 @@ describe('Test for Footer', function () {
13
14
beforeEach(function () {
15
// Mock Electron's window.require
16
- window.require = jest.genMockFunction();
+ window.require = function () {
17
+ return {
18
+ require: jest.genMockFunction()
19
+ };
20
21
22
Actions = require('../../actions/actions.js');
23
Footer = require('../../components/footer.js');
0 commit comments