@@ -16,15 +16,13 @@ import {GithubQueriesModule} from './github.js';
1616describe ( 'GithubQueriesModule' , ( ) => {
1717 let githubApiSpy : jasmine . Spy ;
1818 let infoSpy : jasmine . Spy ;
19- let infoGroupSpy : jasmine . Spy ;
2019 let git : AuthenticatedGitClient ;
2120
2221 beforeEach ( async ( ) => {
2322 githubApiSpy = spyOn ( AuthenticatedGithubClient . prototype , 'graphql' ) . and . throwError (
2423 'The graphql query response must always be manually defined in a test.' ,
2524 ) ;
2625 installVirtualGitClientSpies ( ) ;
27- infoGroupSpy = spyOn ( Log . info , 'group' ) ;
2826 infoSpy = spyOn ( Log , 'info' ) ;
2927 git = await AuthenticatedGitClient . get ( ) ;
3028 } ) ;
@@ -108,7 +106,7 @@ describe('GithubQueriesModule', () => {
108106
109107 await module . printToTerminal ( ) ;
110108
111- expect ( infoGroupSpy ) . toHaveBeenCalledWith ( 'Github Tasks' ) ;
109+ expect ( infoSpy ) . toHaveBeenCalledWith ( 'Github Tasks' ) ;
112110 expect ( infoSpy ) . toHaveBeenCalledWith ( 'query1 0' ) ;
113111 expect ( infoSpy ) . toHaveBeenCalledWith ( 'query2 0' ) ;
114112 } ) ;
@@ -134,11 +132,9 @@ describe('GithubQueriesModule', () => {
134132
135133 await module . printToTerminal ( ) ;
136134
137- expect ( infoGroupSpy ) . toHaveBeenCalledWith ( 'Github Tasks' ) ;
135+ expect ( infoSpy ) . toHaveBeenCalledWith ( 'Github Tasks' ) ;
138136 expect ( infoSpy ) . toHaveBeenCalledWith ( 'query1 1' ) ;
139- expect ( infoGroupSpy ) . toHaveBeenCalledWith (
140- 'https://github.com/owner/name/issues?q=issue:%20yes' ,
141- ) ;
137+ expect ( infoSpy ) . toHaveBeenCalledWith ( 'https://github.com/owner/name/issues?q=issue:%20yes' ) ;
142138 expect ( infoSpy ) . toHaveBeenCalledWith ( '- http://github.com/owner/name/issue/1' ) ;
143139 expect ( infoSpy ) . toHaveBeenCalledWith ( 'query2 0' ) ;
144140 } ) ;
0 commit comments