Skip to content

Commit

Permalink
test: /users/current should return preferences for an extended metada…
Browse files Browse the repository at this point in the history
…ta request
  • Loading branch information
brontolosone committed Sep 13, 2024
1 parent 32670e6 commit 907d1e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,15 @@ describe('api: /users', () => {
.expect(200)
.then(({ body }) => body.email.should.equal('[email protected]')))));

it('should return preferences for an extended metadata request', testService((service) =>
service.login('alice', (asAlice) =>
asAlice.get('/v1/users/current')
.set('X-Extended-Metadata', 'true')
.expect(200)
.then(({ body }) => {
body.preferences.should.eql({ site: {}, projects: {} });
}))));

it('should not return sidewide verbs if not extended', testService((service) =>
service.login('alice', (asAlice) =>
asAlice.get('/v1/users/current')
Expand Down

0 comments on commit 907d1e4

Please sign in to comment.