From 4de04a02d0ab685f98a9394cb2aef62b3ca84567 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 18:00:54 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 088406d according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- test/integration/user.test.js | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/test/integration/user.test.js b/test/integration/user.test.js index 1b9e78d31..0cd82a01d 100644 --- a/test/integration/user.test.js +++ b/test/integration/user.test.js @@ -1,11 +1,11 @@ // test/integration/user.test.js -const chai = require('chai'); -const chaiHttp = require('chai-http'); -const app = require('../app'); +const chai = require('chai') +const chaiHttp = require('chai-http') +const app = require('../app') -const expect = chai.expect; -chai.use(chaiHttp); +const expect = chai.expect +chai.use(chaiHttp) describe('User API Integration Tests', () => { describe('POST /register', () => { @@ -15,26 +15,26 @@ describe('User API Integration Tests', () => { lastName: 'Doe', email: 'john.doe@example.com', password: 'password123' - }); + }) - expect(res).to.have.status(201); - expect(res.body).to.be.an('object'); - expect(res.body).to.have.property('token'); - expect(res.body.token).to.be.a('string'); - }); - }); + expect(res).to.have.status(201) + expect(res.body).to.be.an('object') + expect(res.body).to.have.property('token') + expect(res.body.token).to.be.a('string') + }) + }) describe('POST /login', () => { it('should login a user and return a JWT', async () => { const res = await chai.request(app).post('/login').send({ email: 'john.doe@example.com', password: 'password123' - }); + }) - expect(res).to.have.status(200); - expect(res.body).to.be.an('object'); - expect(res.body).to.have.property('token'); - expect(res.body.token).to.be.a('string'); - }); - }); -}); + expect(res).to.have.status(200) + expect(res.body).to.be.an('object') + expect(res.body).to.have.property('token') + expect(res.body.token).to.be.a('string') + }) + }) +})