mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 08:39:03 +02:00
Merge pull request #19626 from overleaf/ii-invite-remove-unncecessary-fields
[web] Clean up props exposed to the /invite and /invites endpoints GitOrigin-RevId: dc4163e04d5785e141d5e322bfb0a626e67d637f
This commit is contained in:
@@ -218,7 +218,9 @@ describe('ProjectEditorHandler', function () {
|
||||
it('should include invites', function () {
|
||||
expect(this.result.invites).to.exist
|
||||
this.result.invites.should.deep.equal(
|
||||
this.invites.map(invite => _.omit(invite, 'token'))
|
||||
this.invites.map(invite =>
|
||||
_.pick(invite, ['_id', 'email', 'privileges'])
|
||||
)
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user