update another test for the attributes added to heroAdminFields

This commit is contained in:
Alys
2020-04-05 20:53:02 +10:00
parent a9baa7f570
commit 8483b0de72
@@ -54,6 +54,7 @@ describe('PUT /heroes/:heroId', () => {
expect(heroRes).to.have.all.keys([ // works as: object has all and only these keys
'_id', 'balance', 'profile', 'purchased',
'contributor', 'auth', 'items', 'flags',
'preferences', 'lastCron', 'party',
]);
expect(heroRes.auth.local).not.to.have.keys(['salt', 'hashed_password']);
expect(heroRes.profile).to.have.all.keys(['name']);