Add test for throwing error if circle radius is NaN

This commit is contained in:
Knut Hühne 2016-02-15 11:51:27 +01:00
parent 0480e3c5f3
commit df19ec7c30

View File

@ -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 () {