change api test PATCH user to PUT user
parent
3c5dbcd71d
commit
bd18f7b4cf
|
@ -102,13 +102,13 @@ describe('Users', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test the /PATCH route
|
* Test the /PUT route
|
||||||
*/
|
*/
|
||||||
describe('/PATCH users', () => {
|
describe('/PUT users', () => {
|
||||||
it('it should not PATCH a user without auth-token provided', (done) => {
|
it('it should not PUT a user without auth-token provided', (done) => {
|
||||||
chai.request(server)
|
chai.request(server)
|
||||||
.patch(urls.users + '/someId')
|
.put(urls.users + '/someId')
|
||||||
.send({})
|
.send({_id: "someId"})
|
||||||
.end((err, res) => {
|
.end((err, res) => {
|
||||||
res.should.have.status(codes.forbidden);
|
res.should.have.status(codes.forbidden);
|
||||||
res.body.should.be.a('object');
|
res.body.should.be.a('object');
|
||||||
|
|
Loading…
Reference in New Issue