Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhamrj committed May 21, 2023
1 parent c05d691 commit 825f466
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.use(express.json());
const DB_URI = process.env.MONGO_URI
const swaggerDocument = YAML.load('./swagger.yaml')

mongoose.connect(DB_URI, { useUnifiedTopology: true, useNewUrlParser: true })
mongoose.connect(DB_URI, {useUnifiedTopology: true, useNewUrlParser: true})
.then(() => console.log('Connected to MongoDB'))
.catch(e => console.log('Error connecting to MongoDB:', e))

Expand Down
2 changes: 1 addition & 1 deletion routes/urlRoutes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require('express');
const { hashUrl, getUrl } = require('../controllers/urlController');
const {hashUrl, getUrl} = require('../controllers/urlController');

const router = express.Router();

Expand Down
2 changes: 1 addition & 1 deletion test/indexTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('API Tests', () => {
const url = 'https://www.youtube.com/';
chai.request(app)
.post('/api/hash-url')
.send({ url })
.send({url})
.end((err, res) => {
expect(res).to.have.status(200);
expect(res.body).to.have.property('hashedURL');
Expand Down

0 comments on commit 825f466

Please sign in to comment.