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 1f07d98 commit 57d4fc5Copy full SHA for 57d4fc5
src/js/__tests__/components/footer.js
@@ -12,15 +12,17 @@ describe('Test for Footer', function () {
12
var Actions, Footer;
13
14
beforeEach(function () {
15
+ // Mock Electron's window.require
16
+ window.require = jest.genMockFunction();
17
+
18
Actions = require('../../actions/actions.js');
19
Footer = require('../../components/footer.js');
20
});
21
22
it('Should load the footer', function () {
23
24
var instance = TestUtils.renderIntoDocument(<Footer />);
-
- console.log(instance);
25
+ expect(instance.openRepoBrowser).toBeDefined();
26
27
28
0 commit comments