                 user: Immutable.Map({id: 2})
             })
 
-            expect(myCtrl.timeline).to.be.true
+            expect(myCtrl.timeline).to.have.property('next')
 
         it "currentUser timeline sequence", () ->
-            mocks.userTimelineService.getUserTimeline = sinon.stub().withArgs(2).returns(true)
+            mocks.userTimelineService.getUserTimeline =
+                sinon.stub().withArgs(2).returns({next: sinon.stub().promise()})
 
             $scope = $rootScope.$new()
 

    it "timelineList should be an array", () ->
        $scope = $rootScope.$new()

        mocks.userTimelineService.getUserTimeline = sinon.stub().returns(true)

        myCtrl = controller("UserTimeline", $scope, {
            user: Immutable.Map({id: 2})
        })

        expect(myCtrl.timelineList.toJS()).is.an("array")

    describe "init timeline", () ->
        it "project timeline sequence", () ->
            mocks.userTimelineService.getProjectTimeline = sinon.stub().withArgs(4).returns(true)

            $scope = $rootScope.$new()


                projectId: 4
            })

            expect(myCtrl.timeline).to.have.property('next')

        it "currentUser timeline sequence", () ->
            mocks.userTimelineService.getProfileTimeline =
                sinon.stub().withArgs(2).returns({next: sinon.stub().promise()})

            $scope = $rootScope.$new()

