Skip to content

Commit c2699fa

Browse files
author
Emmanouil Konstantinidis
committed
Coverage
1 parent 760fff2 commit c2699fa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/js/__tests__/components/login.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ describe('Test for Login Component', function () {
2424
webContents: {
2525
on: function (event, callback) {
2626

27-
if (event == 'did-get-redirect-request') {
27+
if (event == 'will-navigate') {
2828
callback(
29-
'did-get-redirect-request',
30-
'http://www.github.com/?code=123123123',
29+
'will-navigate',
3130
'http://www.github.com/?code=123123123'
3231
);
3332
}
@@ -135,10 +134,9 @@ describe('Test for Login Component - Callback with Error', function () {
135134
webContents: {
136135
on: function (event, callback) {
137136

138-
if (event == 'did-get-redirect-request') {
137+
if (event == 'will-navigate') {
139138
callback(
140-
'did-get-redirect-request',
141-
'http://www.github.com/?error=FAILURE',
139+
'will-navigate',
142140
'http://www.github.com/?error=FAILURE'
143141
);
144142
}

0 commit comments

Comments
 (0)