     expect(SUGGEST.displayPreviewResult).toHaveBeenCalled()
     expect(SUGGEST.displaySubscription).toHaveBeenCalledWith('A')
 
-  it "9. should call displayNoResult method when callback is error", ->
+  it "8. should call displayNoResult method when callback is error", ->
     setFixtures '''
             <form method="get" id="events" >
               <input type="text" id="suggest" value="a" />

    expect( $( previewElement[2] ).find(".title").text() ).toContain( "19/04/2012 à 15h35")
    expect( $( previewElement[2] ).find(".description").text() ).toContain( "location 3")

  it "11. should display fail", ->
    setFixtures '<div style="display:none;" id="callbackNoResult"></div>'

    SUGGEST.displayNoResult "toto"

    expect( $( "#subscription" ).css( 'display' ) ).toEqual( "none" )
    expect( $( "#callbackNoResult" ).css( 'display' ) ).toEqual( "none" )

  it "13. shoud format icalendar date format", ->
    expect( SUGGEST.formatIcalDate "2012-04-19T14:30:00.000+02:00" ).toEqual( "19/04/2012 à 14h30" )
    expect( SUGGEST.formatIcalDate "2012-04-19T14:00:00.000+02:00" ).toEqual( "19/04/2012 à 14h" )

  it "14. should display events number", ->
    setFixtures '<span id="eventNumber"></span>'

    SUGGEST.displayEventNumber({eventNumber:0})
