message: Complete client tests for server start notification
diff: @@ -97,5 +97,27 @@ describe('controllers', function () {
  socket.receive('server started')
  $httpBackend.flush()
  }))
  +
  + it('should remove the restore message when closing the notification', inject(function () {
  + socket.receive('server started')
  + $httpBackend.flush()
  +
  + scope.closeNotification()
  +
  + expect(scope.hackingProgress.autoRestoreMessage).toBeNull()
  + }))
  +
  + it('should remove the continue code cookie when clearing the progress', inject(function () {
  + $httpBackend.whenPUT('/rest/continue-code/apply/CODE').respond(200)
  +
  + cookies.put('continueCode', 'CODE')
  + socket.receive('server started')
  + $httpBackend.flush()
  +
  + scope.clearProgress()
  +
  + expect(cookies.get('continueCode')).toBeUndefined()
  + expect(scope.hackingProgress.cleared).toBe(true)
  + }))
  })
  })
  