(env: NodeJS.ProcessEnv)
| 38 | }; |
| 39 | |
| 40 | function configureMockEnvHooks(env: NodeJS.ProcessEnv) { |
| 41 | const cachedEnv = process.env; |
| 42 | |
| 43 | beforeEach(function () { |
| 44 | process.env = env; |
| 45 | }); |
| 46 | |
| 47 | afterEach(function () { |
| 48 | process.env = cachedEnv; |
| 49 | }); |
| 50 | } |
| 51 | |
| 52 | describe('Connect Tests', function () { |
| 53 | context('when PLAIN auth enabled', () => { |