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 89750d8 commit 9b44ca3Copy full SHA for 9b44ca3
src/js/__tests__/components/login.js
@@ -22,8 +22,16 @@ describe('Test for Login Component', function () {
22
return;
23
},
24
webContents: {
25
- on: function () {
26
- return;
+ on: function (event, callback) {
+
27
+ if (event == 'did-get-redirect-request') {
28
+ callback({
29
+ event: 'did-get-redirect-request',
30
+ oldUrl: 'http://www.github.com/?code=123123123',
31
+ newUrl: 'http://www.github.com/?code=123123123'
32
+ });
33
+ }
34
35
}
36
37
on: function () {
0 commit comments