Leaflet/spec/suites/layer/vector/CircleSpec.js
Tom MacWright a2f7d7e834 Use mocha
2013-04-03 14:50:09 -07:00

18 lines
411 B
JavaScript

describe('Circle', function () {
describe('#getBounds', function () {
var circle;
beforeEach(function () {
circle = L.circle([50, 30], 200);
});
it('returns bounds', function () {
var bounds = circle.getBounds();
expect(bounds.getSouthWest().equals([49.998203369, 29.997204939])).to.be.ok();
expect(bounds.getNorthEast().equals([50.001796631, 30.002795061])).to.be.ok();
});
});
});