<NME> CircleSpec.js
<BEF> describe('Circle', () => {
	let map, container, circle;

	beforeEach(() => {
		container = container = createContainer();
		map = L.map(container);
			expect(circle.getRadius()).to.eql(10);
		});

	});

	describe('#getBounds', function () {
		});

		it('throws error if radius is NaN', () => {
			expect(() => {
				L.circle([0, 0], NaN);
			}).to.throwException('Circle radius cannot be NaN');
		});

	});

	describe('#getBounds', () => {
		it('returns bounds', () => {
			const bounds = circle.getBounds();

			expect(bounds.getSouthWest()).nearLatLng([49.99820, 29.99720]);
			expect(bounds.getNorthEast()).nearLatLng([50.00179, 30.00279]);
		});
	});

	describe('Legacy factory', () => {
		it('returns same bounds as 1.0 factory', () => {
			const bounds = circle.getBounds();

			expect(bounds.getSouthWest()).nearLatLng([49.99820, 29.99720]);
			expect(bounds.getNorthEast()).nearLatLng([50.00179, 30.00279]);
		});
	});
});

<MSG> Add test for throwing error if circle radius is NaN

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

{'commit': "diff --git a/spec/suites/layer/vector/CircleSpec.js b/spec/suites/layer/vector/CircleSpec.js\nindex c269f81a..481da35e 100644\n--- a/spec/suites/layer/vector/CircleSpec.js\n+++ b/spec/suites/layer/vector/CircleSpec.js\n@@ -7,6 +7,12 @@ describe('Circle', function () {\n \t\t\texpect(circle.getRadius()).to.eql(10);\n \t\t});\n \n+\t\tit('throws error if radius is NaN', function () {\n+\t\t\texpect(function () {\n+\t\t\t\tL.circle([0, 0], NaN);\n+\t\t\t}).to.throwException('Circle radius cannot be NaN');\n+\t\t});\n+\n \t});\n \n \tdescribe('#getBounds', function () {\n", 'commit_subject': 'Add test for throwing error if circle radius is NaN', 'repo_name': 'Leaflet/Leaflet', 'committer': {'name': 'Knut Hühne', 'email': 'd2f539dedeec14e34a7f96ae3f2f06fb4ed22063@k-nut.eu', 'time_sec': '1455533487', 'tz_offset': '60', 'date': {'seconds': '1455533487'}}, 'commit_tree': '3921e75c36a8cf47df9e378b808e60e7eff01f52', 'commit_message': 'Add test for throwing error if circle radius is NaN\n', 'language_name': 'JavaScript', 'license': 'bsd-2-clause', 'hunks': "@@ -7,6 +7,12 @@ describe('Circle', function () {\n \t\t\texpect(circle.getRadius()).to.eql(10);\n \t\t});\n \n+\t\tit('throws error if radius is NaN', function () {\n+\t\t\texpect(function () {\n+\t\t\t\tL.circle([0, 0], NaN);\n+\t\t\t}).to.throwException('Circle radius cannot be NaN');\n+\t\t});\n+\n \t});\n \n \tdescribe('#getBounds', function () {\n", 'addition_count': 6, 'deletion_count': 0, 'src_file': 'a/spec/suites/layer/vector/CircleSpec.js', 'tgt_file': 'b/spec/suites/layer/vector/CircleSpec.js', 'file_extension': '.js', 'before_file': "describe('Circle', () => {\n\tlet map, container, circle;\n\n\tbeforeEach(() => {\n\t\tcontainer = container = createContainer();\n\t\tmap = L.map(container);\n\t\t\texpect(circle.getRadius()).to.eql(10);\n\t\t});\n\n\t});\n\n\tdescribe('#getBounds', function () {\n\t\t});\n\n\t\tit('throws error if radius is NaN', () => {\n\t\t\texpect(() => {\n\t\t\t\tL.circle([0, 0], NaN);\n\t\t\t}).to.throwException('Circle radius cannot be NaN');\n\t\t});\n\n\t});\n\n\tdescribe('#getBounds', () => {\n\t\tit('returns bounds', () => {\n\t\t\tconst bounds = circle.getBounds();\n\n\t\t\texpect(bounds.getSouthWest()).nearLatLng([49.99820, 29.99720]);\n\t\t\texpect(bounds.getNorthEast()).nearLatLng([50.00179, 30.00279]);\n\t\t});\n\t});\n\n\tdescribe('Legacy factory', () => {\n\t\tit('returns same bounds as 1.0 factory', () => {\n\t\t\tconst bounds = circle.getBounds();\n\n\t\t\texpect(bounds.getSouthWest()).nearLatLng([49.99820, 29.99720]);\n\t\t\texpect(bounds.getNorthEast()).nearLatLng([50.00179, 30.00279]);\n\t\t});\n\t});\n});\n", 'message': 'Add test for throwing error if circle radius is NaN\n', 'author_name': 'Knut Hühne', 'lang': 'js'}