message: Change expectation for forged feedback w/ non-existing UserId
diff: @@ -50,7 +50,7 @@ describe('/api/Feedbacks', () => {
  headers: jsonHeader,
  body: {
  comment: 'Lousy crap! You use sequelize 1.7.x? Welcome to SQL Injection-land, morons! As if that is not bad enough, you use z85/base85 and hashids for crypto? Even MD5 to hash passwords! Srsly?!?!',
  - rating: 1,
  + rating: 0,
  UserId: 3
  }
  })
  @@ -61,20 +61,21 @@ describe('/api/Feedbacks', () => {
  }).done(done)
  })
  - it('POST feedback in a non-existing users name as anonymous user', done => {
  + it('POST feedback in a non-existing users name as anonymous user fails with constraint error', done => {
  frisby.post(API_URL + '/Feedbacks', {
  headers: jsonHeader,
  body: {
  - comment: 'You suck! Stupid JWT secret "' + insecurity.defaultSecret + '" and being typosquatted by epilogue-js and angular-tooltipps!',
  + comment: 'You suck!',
  rating: 0,
  UserId: 4711
  }
  })
  - .expect('status', 201)
  + .expect('status', 500)
  .expect('header', 'content-type', /application\/json/)
  - .expect('json', 'data', {
  - UserId: 4711
  - }).done(done)
  + .then(res => {
  + expect(res.json.errors).toContain('SQLITE_CONSTRAINT: FOREIGN KEY constraint failed')
  + })
  + .done(done)
  })
  it('POST feedback is associated with current user', done => {
  @@ -89,7 +90,7 @@ describe('/api/Feedbacks', () => {
  .then(res => frisby.post(API_URL + '/Feedbacks', {
  headers: { 'Authorization': 'Bearer ' + res.json.authentication.token, 'content-type': 'application/json' },
  body: {
  - comment: 'Bjoern\'s choice award!',
  + comment: 'Stupid JWT secret "' + insecurity.defaultSecret + '" and being typosquatted by epilogue-js and angular-tooltipps!',
  rating: 5,
  UserId: 4
  }
  