Skip to content

Commit b6e8cb6

Browse files
task: Reset env variable after test
1 parent bd93000 commit b6e8cb6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/unit/sinks/eventbridge.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import { publishToEventBridge as publish } from '../../../src/sinks/eventbridge'
88
import Connector from '../../../src/connectors/eventbridge';
99

1010
describe('sinks/eventbridge.js', () => {
11+
const origBatchSize = process.env.BATCH_SIZE;
12+
afterEach(() => {
13+
// set back to state specified in package.json
14+
process.env.BATCH_SIZE = origBatchSize;
15+
});
1116
afterEach(sinon.restore);
1217

1318
it('should batch and publish', (done) => {

0 commit comments

Comments
 (0)