File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ describe('missmatch', () => {
2020 google . getGithubUsersFromGoogle . mockResolvedValue ( new Set ( [ 'a' , 'd' ] ) )
2121 // @ts -expect-error mockResolved unexpected
2222 github . getGithubUsersFromGithub . mockResolvedValue ( new Set ( [ 'b' , 'c' , 'a' ] ) )
23- // github.addUsersToGitHubOrg
2423 } )
2524 it ( 'should have consistent console output' , async ( ) => {
2625 await mod . run ( )
@@ -37,10 +36,12 @@ describe('missmatch', () => {
3736 return expect ( processExitSpy ) . toBeCalledWith ( 122 )
3837 } )
3938 it ( 'should not add users if not set to' , async ( ) => {
39+ delete process . env . ADD_USERS
4040 await mod . run ( )
4141 return expect ( github . addUsersToGitHubOrg ) . not . toBeCalled ( )
4242 } )
4343 it ( 'should not remove users if not set to' , async ( ) => {
44+ delete process . env . REMOVE_USERS
4445 await mod . run ( )
4546 return expect ( github . removeUsersToGitHubOrg ) . not . toBeCalled ( )
4647 } )
You can’t perform that action at this time.
0 commit comments