File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/js/__tests__/components Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments