Skip to content

Commit

Permalink
chore: remove irrelevant dotenv.config calls
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilome committed May 31, 2019
1 parent 0f2e8f5 commit 64ccf84
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ TEST_DATABASE_URL=
ADMIN_SECRET=
JWT_SECRET=
DUMMY_VAR=
ANOTHER_DUMMY=
3 changes: 0 additions & 3 deletions server/middleware/authHandler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import jwt from 'jsonwebtoken';
import dotenv from 'dotenv';

dotenv.config();

/**
* @class Authentication and Authorization handler
Expand Down
2 changes: 0 additions & 2 deletions tests/routes/auth.spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import chai from 'chai';
import 'chai/register-should';
import chaiHttp from 'chai-http';
import dotenv from 'dotenv';
import app from '../../server/index';
import { users, emptyTables } from '../seed/seed';

dotenv.config();
chai.use(chaiHttp);

before(emptyTables);
Expand Down

0 comments on commit 64ccf84

Please sign in to comment.