We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47c1e3 commit 2c55be0Copy full SHA for 2c55be0
test/helpers/accessToken.test.js
@@ -7,16 +7,11 @@ const createToken = require('../../src/helpers/accessToken.js');
7
const expect = chai.expect;
8
9
describe('createToken', () => {
10
- let sandbox;
11
- let tokenGeneratorStub;
12
- let exitStub;
13
- let envStub;
14
-
15
beforeEach(() => {
16
- sandbox = sinon.createSandbox();
17
- envStub = sandbox.stub(process, 'env').value({});
18
- exitStub = sandbox.stub(process, 'exit');
19
- tokenGeneratorStub = {
+ const _sandbox = sinon.createSandbox();
+ const _envStub = _sandbox.stub(process, 'env').value({});
+ const _exitStub = _sandbox.stub(process, 'exit');
+ const _tokenGeneratorStub = {
20
twilioClient: {
21
accountSid: 'ACxxxx',
22
username: 'test',
0 commit comments