File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/js/__tests__/components Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,24 @@ describe('Test for Login Component', function () {
3131 ) ;
3232 }
3333
34+ if ( event == 'did-get-redirect-request' ) {
35+ callback (
36+ 'did-get-redirect-request' ,
37+ 'http://www.github.com/?code=123123123' ,
38+ 'http://www.github.com/?code=123123123'
39+ ) ;
40+ }
41+
3442 }
3543 } ,
3644 on : function ( ) {
3745 return ;
3846 } ,
3947 close : function ( ) {
4048 return ;
49+ } ,
50+ destroy : function ( ) {
51+ return ;
4152 }
4253 } ;
4354 } ;
@@ -141,13 +152,24 @@ describe('Test for Login Component - Callback with Error', function () {
141152 ) ;
142153 }
143154
155+ if ( event == 'did-get-redirect-request' ) {
156+ callback (
157+ 'did-get-redirect-request' ,
158+ 'http://www.github.com/?error=FAILURE' ,
159+ 'http://www.github.com/?error=FAILURE'
160+ ) ;
161+ }
162+
144163 }
145164 } ,
146165 on : function ( event , callback ) {
147166 callback ( ) ;
148167 } ,
149168 close : function ( ) {
150169 return ;
170+ } ,
171+ destroy : function ( argument ) {
172+ return ;
151173 }
152174 } ;
153175 } ;
You can’t perform that action at this time.
0 commit comments