From 8483b0de7273e4cc5bee7a736f4c7a01cc6b434c Mon Sep 17 00:00:00 2001 From: Alys Date: Sun, 5 Apr 2020 20:53:02 +1000 Subject: [PATCH] update another test for the attributes added to heroAdminFields --- test/api/v3/integration/hall/PUT-hall_heores_heroId.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/api/v3/integration/hall/PUT-hall_heores_heroId.test.js b/test/api/v3/integration/hall/PUT-hall_heores_heroId.test.js index c009739a02..84c6e63edb 100644 --- a/test/api/v3/integration/hall/PUT-hall_heores_heroId.test.js +++ b/test/api/v3/integration/hall/PUT-hall_heores_heroId.test.js @@ -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']);