From bac00dadfd49dd96827350acae7498f1195e3f72 Mon Sep 17 00:00:00 2001 From: Florian Hartwich Date: Wed, 17 May 2017 00:04:45 +0200 Subject: [PATCH] Fix API tests for POST user response (reflecting advanced user now) --- api/test/users.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/test/users.spec.js b/api/test/users.spec.js index 09727f7..75e887e 100644 --- a/api/test/users.spec.js +++ b/api/test/users.spec.js @@ -93,8 +93,9 @@ describe('Users', () => { res.should.have.status(codes.created); res.body.should.be.a('object'); res.body.should.have.property('username').eql(user.username); - res.body.should.have.property('squadId').eql(null); - res.body.should.have.property('rankLvl').eql(0); + res.body.should.have.property('squad').eql(null); + res.body.should.have.property('rank').property('level').eql(0); + res.body.should.have.property('awards').eql([]); done(); }); });