diff --git a/tests/slider_errors.js b/tests/slider_errors.js index 8440f889..75f6150e 100644 --- a/tests/slider_errors.js +++ b/tests/slider_errors.js @@ -95,6 +95,17 @@ }); }, "Should error if limit enabled with only one handle."); + assert.throws(function(){ + noUiSlider.create(slider, { + start: 10, + padding: [50, 51], + range: { + 'min': 0, + 'max': 10 + } + }); + }, "Padding exceeds 100%."); + assert.throws(function(){ noUiSlider.create(slider, { start: 0,