Skip to content

Commit

Permalink
[ch] changed logic implementation in route to controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Easybuoy committed Oct 24, 2018
1 parent 63a93b8 commit aaf8355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.get('/', (req, res) => {
});

// Use morgan to log requests.
// app.use(morgan('dev'));
app.use(morgan('dev'));

// using routes
app.use('/api/v1/products', products);
Expand Down
18 changes: 1 addition & 17 deletions server/test/userTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,7 @@ const { expect } = chai;
chai.use(chaiHttp);

describe('Signup Route', () => {
// it('create a user and return user details', (done) => {
// chai.request(app).post('/api/v1/users/signup')
// .send({
// email: 'a@gmail.com',
// name: 'John Example',
// password: '123456',
// type: '1',
// })
// .end((err, res) => {
// expect(res).to.have.status(201);
// expect(res.body).to.be.an('object');
// expect(res.body.message).to.equal('User Created Successfully');
// done();
// });
// });

it('create a user and return user details', (done) => {
it('create a user and return user details', (done) => {
chai.request(app).post('/api/v1/users/login')
.send({
email: 'example@gmail.com',
Expand Down

0 comments on commit aaf8355

Please sign in to comment.