Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it 'should call scrollable once for the animation & once for the api and circular once'
- $carousel_container = $(carousel_container)
- $carousel_container.should.receive('scrollable', 2).with_args(an_instance_of(Object))
- $carousel_container.should.receive('circular')
- $.CAROUSEL.animate($carousel_container)
- end
- $.CAROUSEL = {
- animate : function($element) {
- $element.scrollable({size: $.CAROUSEL.size, vertical: true}).circular();
- var scrollable_api = $element.scrollable({api: true});
- }
- }
Add Comment
Please, Sign In to add comment