# Code coverage report for ./suites/layer/vector/CircleSpec.js

## Statements: 100% (9 / 9) Branches: 100% (0 / 0) Functions: 100% (4 / 4) Lines: 100% (9 / 9)

All files » ./suites/layer/vector/ » CircleSpec.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    181
    1

    1

    1
    1

    1
    1

    1
    1

     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();
    		});
    	});
    });