File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
src/js/__tests__/components Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,20 @@ describe('Test for Login Component', function () {
25
25
on : function ( event , callback ) {
26
26
27
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
- } ) ;
28
+ callback (
29
+ 'did-get-redirect-request' ,
30
+ 'http://www.github.com/?code=123123123' ,
31
+ 'http://www.github.com/?code=123123123'
32
+ ) ;
33
33
}
34
34
35
35
}
36
36
} ,
37
37
on : function ( ) {
38
38
return ;
39
+ } ,
40
+ close : function ( ) {
41
+ return ;
39
42
}
40
43
} ;
41
44
} ;
@@ -105,6 +108,12 @@ describe('Test for Login Component', function () {
105
108
var instance = TestUtils . renderIntoDocument ( < Login /> ) ;
106
109
expect ( instance . authGithub ) . toBeDefined ( ) ;
107
110
111
+ // Prevent testing requestGithubToken
112
+ // Tested in another case
113
+ instance . requestGithubToken = function ( ) {
114
+ return ;
115
+ } ;
116
+
108
117
instance . authGithub ( ) ;
109
118
110
119
} ) ;
You can’t perform that action at this time.
0 commit comments