Skip to content

Commit

Permalink
fix(*): added config files
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Sep 3, 2021
1 parent 77da57d commit 139054f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ index.js
testing.md
test/db.js
images
.eslintrc.cjs
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.export = {
"verbose": true,
"preset": "@shelf/jest-mongodb"
}
4 changes: 2 additions & 2 deletions utils/auth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const jwt = require("jsonwebtoken");
import jwt from "jsonwebtoken";

const auth = (req, res, next) => {
try {
Expand All @@ -20,4 +20,4 @@ const auth = (req, res, next) => {
}
};

module.exports = auth;
export default auth;

0 comments on commit 139054f

Please sign in to comment.