Skip to content

Commit 2c55be0

Browse files
committed
fix: update beforeEach variables in accessToken test
Signed-off-by: Tierney Cyren <hello@bnb.im>
1 parent a47c1e3 commit 2c55be0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

test/helpers/accessToken.test.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@ const createToken = require('../../src/helpers/accessToken.js');
77
const expect = chai.expect;
88

99
describe('createToken', () => {
10-
let sandbox;
11-
let tokenGeneratorStub;
12-
let exitStub;
13-
let envStub;
14-
1510
beforeEach(() => {
16-
sandbox = sinon.createSandbox();
17-
envStub = sandbox.stub(process, 'env').value({});
18-
exitStub = sandbox.stub(process, 'exit');
19-
tokenGeneratorStub = {
11+
const _sandbox = sinon.createSandbox();
12+
const _envStub = _sandbox.stub(process, 'env').value({});
13+
const _exitStub = _sandbox.stub(process, 'exit');
14+
const _tokenGeneratorStub = {
2015
twilioClient: {
2116
accountSid: 'ACxxxx',
2217
username: 'test',

0 commit comments

Comments
 (0)