@@ -31,22 +31,22 @@ describe('missmatch', () => {
3131
3232 it ( 'should exit with 0 by default as there is a missmatch' , async ( ) => {
3333 await mod . run ( )
34- return expect ( processExitSpy ) . toBeCalledWith ( 0 )
34+ return expect ( processExitSpy ) . toHaveBeenCalledWith ( 0 )
3535 } )
3636 it ( 'should exit with 122 if defined when there is a missmatch' , async ( ) => {
3737 process . env . EXIT_CODE_ON_MISMATCH = '122'
3838 await mod . run ( )
39- return expect ( processExitSpy ) . toBeCalledWith ( 122 )
39+ return expect ( processExitSpy ) . toHaveBeenCalledWith ( 122 )
4040 } )
4141 it ( 'should not add users if not set to' , async ( ) => {
4242 delete process . env . ADD_USERS
4343 await mod . run ( )
44- return expect ( github . addUsersToGitHubOrg ) . not . toBeCalled ( )
44+ return expect ( github . addUsersToGitHubOrg ) . not . toHaveBeenCalled ( )
4545 } )
4646 it ( 'should not remove users if not set to' , async ( ) => {
4747 delete process . env . REMOVE_USERS
4848 await mod . run ( )
49- return expect ( github . removeUsersFromGitHubOrg ) . not . toBeCalled ( )
49+ return expect ( github . removeUsersFromGitHubOrg ) . not . toHaveBeenCalled ( )
5050 } )
5151 it ( 'should add users if set to' , async ( ) => {
5252 process . env . ADD_USERS = 'true'
@@ -79,21 +79,21 @@ describe('match', () => {
7979 } )
8080 it ( 'should exit with 0 by default' , async ( ) => {
8181 await mod . run ( )
82- return expect ( processExitSpy ) . toBeCalledWith ( 0 )
82+ return expect ( processExitSpy ) . toHaveBeenCalledWith ( 0 )
8383 } )
8484 it ( 'should not exit with 122 if defined' , async ( ) => {
8585 process . env . EXIT_CODE_ON_MISMATCH = '122'
8686 await mod . run ( )
87- return expect ( processExitSpy ) . not . toBeCalledWith ( 122 )
87+ return expect ( processExitSpy ) . not . toHaveBeenCalledWith ( 122 )
8888 } )
8989 it ( 'should not add users' , async ( ) => {
9090 process . env . ADD_USERS = 'true'
9191 await mod . run ( )
92- return expect ( github . addUsersToGitHubOrg ) . not . toBeCalled ( )
92+ return expect ( github . addUsersToGitHubOrg ) . not . toHaveBeenCalled ( )
9393 } )
9494 it ( 'should not remove users' , async ( ) => {
9595 process . env . REMOVE_USERS = 'true'
9696 await mod . run ( )
97- return expect ( github . removeUsersFromGitHubOrg ) . not . toBeCalled ( )
97+ return expect ( github . removeUsersFromGitHubOrg ) . not . toHaveBeenCalled ( )
9898 } )
9999} )
0 commit comments