Guest User

Untitled

a guest
May 20th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. it 'should call scrollable once for the animation & once for the api and circular once'
  2. $carousel_container = $(carousel_container)
  3. $carousel_container.should.receive('scrollable', 2).with_args(an_instance_of(Object))
  4. $carousel_container.should.receive('circular')
  5. $.CAROUSEL.animate($carousel_container)
  6. end
  7.  
  8. $.CAROUSEL = {
  9. animate : function($element) {
  10. $element.scrollable({size: $.CAROUSEL.size, vertical: true}).circular();
  11. var scrollable_api = $element.scrollable({api: true});
  12. }
  13. }
Add Comment
Please, Sign In to add comment