Add test for throwing error if circle radius is NaN
This commit is contained in:
parent
0480e3c5f3
commit
df19ec7c30
@ -7,6 +7,12 @@ describe('Circle', function () {
|
||||
expect(circle.getRadius()).to.eql(10);
|
||||
});
|
||||
|
||||
it('throws error if radius is NaN', function () {
|
||||
expect(function () {
|
||||
L.circle([0, 0], NaN);
|
||||
}).to.throwException('Circle radius cannot be NaN');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('#getBounds', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user