[Pkg-javascript-commits] [leaflet-markercluster] 358/479: AddLayerSpec -> AddLayer.SingleSpec (As it contains tests about adding a single marker). Not sure if this is the right way to organise these tests.

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit b207656d4d447bbf0a97ac2e7924c40d61ad04b5
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Jun 14 14:18:42 2013 +1200

    AddLayerSpec -> AddLayer.SingleSpec (As it contains tests about adding a single marker). Not sure if this is the right way to organise these tests.
---
 spec/suites/{AddLayerSpec.js => AddLayer.SingleSpec.js} | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/spec/suites/AddLayerSpec.js b/spec/suites/AddLayer.SingleSpec.js
similarity index 71%
rename from spec/suites/AddLayerSpec.js
rename to spec/suites/AddLayer.SingleSpec.js
index af82617..1b78f6d 100644
--- a/spec/suites/AddLayerSpec.js
+++ b/spec/suites/AddLayer.SingleSpec.js
@@ -1,4 +1,4 @@
-describe('addLayer', function () {
+describe('addLayer adding a single marker', function () {
 	var map, div;
 	beforeEach(function () {
 		div = document.createElement('div');
@@ -16,7 +16,9 @@
 	afterEach(function () {
 		document.body.removeChild(div);
 	});
-	it('adds an individual marker that is added before the group is added to the map', function () {
+
+
+	it('appears when added to the group before the group is added to the map', function () {
 
 		var group = new L.MarkerClusterGroup();
 		var marker = new L.Marker([1.5, 1.5]);
@@ -27,7 +29,7 @@
 		expect(marker._icon).to.not.be(undefined);
 		expect(marker._icon.parentNode).to.be(map._panes.markerPane);
 	});
-	it('adds an individual marker that is added after the group is added to the map', function () {
+	it('appears when added to the group after the group is added to the map', function () {
 
 		var group = new L.MarkerClusterGroup();
 		var marker = new L.Marker([1.5, 1.5]);
@@ -38,7 +40,7 @@
 		expect(marker._icon).to.not.be(undefined);
 		expect(marker._icon.parentNode).to.be(map._panes.markerPane);
 	});
-	it('adds (using animations) an individual marker that is added after the group is added to the map', function () {
+	it('appears (using animations) when added after the group is added to the map', function () {
 
 		var group = new L.MarkerClusterGroup({ animateAddingMarkers: true });
 		var marker = new L.Marker([1.5, 1.5]);
@@ -51,7 +53,7 @@
 	});
 
 
-	it('does not add an individual marker that is too far away that is added before the group is added to the map', function () {
+	it('does not appear when too far away when added before the group is added to the map', function () {
 
 		var group = new L.MarkerClusterGroup();
 		var marker = new L.Marker([3.5, 1.5]);
@@ -61,7 +63,7 @@
 
 		expect(marker._icon).to.be(undefined);
 	});
-	it('does not add an individual marker that is too far away that is added after the group is added to the map', function () {
+	it('does not appear when too far away when added after the group is added to the map', function () {
 
 		var group = new L.MarkerClusterGroup();
 		var marker = new L.Marker([3.5, 1.5]);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list