message: Adjusted mocked error to match the actual data type
diff: @@ -130,20 +130,20 @@ describe('LoginComponent', () => {
  })
  it('removes authentication token and basket id on failed login attempt', fakeAsync(() => {
  - userService.login.and.returnValue(throwError('Error'))
  + userService.login.and.returnValue(throwError({ error: 'Error' }))
  component.login()
  expect(localStorage.getItem('token')).toBeNull()
  expect(sessionStorage.getItem('bid')).toBeNull()
  }))
  it('returns error message from server to client on failed login attempt', fakeAsync(() => {
  - userService.login.and.returnValue(throwError('Error'))
  + userService.login.and.returnValue(throwError({ error: 'Error' }))
  component.login()
  - expect(component.error).toBe('Error')
  + expect(component.error).toBeTruthy()
  }))
  it('sets form to pristine on failed login attempt', fakeAsync(() => {
  - userService.login.and.returnValue(throwError('Error'))
  + userService.login.and.returnValue(throwError({ error: 'Error' }))
  component.login()
  expect(component.emailControl.pristine).toBe(true)
  expect(component.passwordControl.pristine).toBe(true)
  @@ -158,7 +158,7 @@ describe('LoginComponent', () => {
  })
  it('puts current email into "email" cookie on failed login with remember-me checkbox ticked', fakeAsync(() => {
  - userService.login.and.returnValue(throwError('Error'))
  + userService.login.and.returnValue(throwError({ error: 'Error' }))
  component.emailControl.setValue('horst@juice-sh.op')
  component.rememberMe.setValue(true)
  component.login()
  