       el: "#js-slider"
 
     params =
-      size: 
+      size:
         small:
           height: 290
           width: 427


      it 'has the correct slides state', ->
        expect($('.slider__control--next').html()).toBe("1 of 5")


    describe 'going to a particular slide', ->
      loadFixtures('slider.html')
      window.slider = new Slider(config)
      slider._goToSlide(3)

      it ' goes to the third slide', ->
        setTimeout ->
          expect($('.slider__slide').eq(2)).toHaveClass('is-current')
          expect($('.slider__slide').eq(3)).toHaveClass('is-next')
          expect($('.slider__slide').eq(1)).toHaveClass('is-prev')
        , 1250


    describe 'functionality:', ->

      it 'next link triggers _nextSlide', ->
        $('.slider__control--next').trigger('click')
        expect(slider._nextSlide).toHaveBeenCalled()

      it 'prev link triggers _previousSlide', ->
        $('.slider__control--prev').trigger('click')
        expect(slider._previousSlide).toHaveBeenCalled()

    # TODO: Refactor the slider code to remove nested setTimeouts
    # describe 'going to a particular slide', ->
    #   beforeEach ->
    #     loadFixtures('slider.html')
    #     window.slider = new Slider(config)
    #     slider._goToSlide(3)

    #   it ' goes to the third slide', ->
    #     setTimeout =>
    #       expect($('.slider__slide').eq(2)).toHaveClass('is-current')
    #       expect($('.slider__slide').eq(3)).toHaveClass('is-next')
    #       expect($('.slider__slide').eq(1)).toHaveClass('is-prev')
    #     , 0

  # TODO: account for resizing and resize handler.