Skip to content

Commit ae41f7d

Browse files
committed
test case setup wrong way round
1 parent 19033cf commit ae41f7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/index.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)