message: Fix token origin from auth header to cookie
diff: @@ -138,7 +138,7 @@ describe('/rest/user/authentication-details', () => {
  })
  describe('/rest/user/whoami', () => {
  - xit('GET own user id and email on who-am-i request', () => {
  + it('GET own user id and email on who-am-i request', () => {
  return frisby.post(REST_URL + '/user/login', {
  headers: jsonHeader,
  body: {
  @@ -148,11 +148,12 @@ describe('/rest/user/whoami', () => {
  })
  .expect('status', 200)
  .then(({ json }) => {
  - return frisby.get(REST_URL + '/user/whoami', { headers: { 'Authorization': 'Bearer ' + json.authentication.token } })
  + return frisby.get(REST_URL + '/user/whoami', { headers: { Cookie: 'token=' + json.authentication.token } })
  .expect('status', 200)
  .expect('header', 'content-type', /application\/json/)
  .expect('jsonTypes', 'user', {
  - id: Joi.number()
  + id: Joi.number(),
  + email: Joi.string()
  })
  .expect('json', 'user', {
  email: 'bjoern.kimminich@googlemail.com'
  