foundation-sites-5
Version:
**This package is only for versions 5 and earlier of Foundation. As of version 6, the package has a new name: `foundation-sites`.**
24 lines (20 loc) • 659 B
JavaScript
describe('slider:', function() {
beforeEach(function() {
var origFunc = $.fn.foundation;
spyOn($.fn, 'foundation').andCallFake(function() {
var result = origFunc.apply(this, arguments);
jasmine.Clock.tick(1000); // Let things settle...
return result;
});
});
describe('label', function() {
beforeEach(function() {
document.body.innerHTML = __html__['spec/slider/label.html'];
});
it('displays value when initialized', function() {
$(document).foundation();
var sliderValue = $('.range-slider').attr('data-slider');
expect($('#sliderOutput').text()).toBe(sliderValue);
});
});
});