From bd18f7b4cf722896b23d7f51692a94ec305ab2ff Mon Sep 17 00:00:00 2001 From: HardiReady Date: Fri, 30 Mar 2018 09:16:11 +0200 Subject: [PATCH] change api test PATCH user to PUT user --- api/test/users.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/test/users.spec.js b/api/test/users.spec.js index 66ab3f5..9c243d9 100644 --- a/api/test/users.spec.js +++ b/api/test/users.spec.js @@ -102,13 +102,13 @@ describe('Users', () => { }); /* - * Test the /PATCH route + * Test the /PUT route */ - describe('/PATCH users', () => { - it('it should not PATCH a user without auth-token provided', (done) => { + describe('/PUT users', () => { + it('it should not PUT a user without auth-token provided', (done) => { chai.request(server) - .patch(urls.users + '/someId') - .send({}) + .put(urls.users + '/someId') + .send({_id: "someId"}) .end((err, res) => { res.should.have.status(codes.forbidden); res.body.should.be.a('object');