From 1ec5da08b66555aacd8df308380d95d91f254355 Mon Sep 17 00:00:00 2001 From: Leon Gersen Date: Mon, 2 Apr 2018 11:13:09 +0200 Subject: [PATCH] test padding --- tests/slider_errors.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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,