-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure ESLint and Git Pre commit hook to run tests and ESlint format
- Loading branch information
Showing
7 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// Helpers | ||
// Helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
import chai, { expect } from 'chai'; | ||
import chaiHttp from 'chai-http'; | ||
import app from './index'; | ||
import chai, { expect } from "chai"; | ||
import chaiHttp from "chai-http"; | ||
import app from "./index"; | ||
|
||
chai.use(chaiHttp); | ||
const router = () => chai.request(app) | ||
const router = () => chai.request(app); | ||
|
||
describe('Initial configuration', () => { | ||
|
||
it('Should retutn `Welcome to E-Commerce-Ninja-BackEnd` when GET on /', (done) => { | ||
router() | ||
.get('/') | ||
.end((err, res) => { | ||
expect(res).to.have.status(200); | ||
expect(res.body).to.be.a('object'); | ||
expect(res.body).to.have.property('message', "Welcome to E-Commerce-Ninja-BackEnd"); | ||
done(err); | ||
}); | ||
}); | ||
describe("Initial configuration", () => { | ||
it("Should retutn `Welcome to E-Commerce-Ninja-BackEnd` when GET on /", (done) => { | ||
router() | ||
.get("/") | ||
.end((err, res) => { | ||
expect(res).to.have.status(200); | ||
expect(res.body).to.be.a("object"); | ||
expect(res.body).to.have.property("message", "Welcome to E-Commerce-Ninja-BackEnd"); | ||
done(err); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// user Controllers | ||
// user Controllers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// user repositories | ||
// user repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// user Tests | ||
// user Tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// user validations | ||
// user validations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// Sending Email. | ||
// Sending Email. |