Skip to content

Commit

Permalink
test padding
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Apr 2, 2018
1 parent 1f629e4 commit 1ec5da0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/slider_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1ec5da0

Please sign in to comment.