diff --git a/spec/after.js b/spec/after.js index e69de29b..63bd3ea3 100644 --- a/spec/after.js +++ b/spec/after.js @@ -0,0 +1 @@ +L.Icon.Default.imagePath = '/base/dist/images/'; diff --git a/spec/suites/layer/marker/MarkerSpec.js b/spec/suites/layer/marker/MarkerSpec.js index 0db5ba74..b71e0d85 100644 --- a/spec/suites/layer/marker/MarkerSpec.js +++ b/spec/suites/layer/marker/MarkerSpec.js @@ -28,7 +28,7 @@ describe("Marker", function () { var expectedX = 96; var expectedY = 100; var sizedIcon = new L.Icon.Default({ - iconUrl: icon1._getIconUrl('icon') + '?3', + iconUrl: icon1.options.iconUrl + '?3', iconSize: [expectedX, expectedY] }); @@ -44,7 +44,7 @@ describe("Marker", function () { it("set the correct x and y size attributes passing only one value", function () { var expectedXY = 96; var sizedIcon = new L.Icon.Default({ - iconUrl: icon1._getIconUrl('icon') + '?3', + iconUrl: icon1.options.iconUrl + '?3', iconSize: expectedXY }); @@ -60,7 +60,7 @@ describe("Marker", function () { it("set the correct x and y size attributes passing a L.Point instance", function () { var expectedXY = 96; var sizedIcon = new L.Icon.Default({ - iconUrl: icon1._getIconUrl('icon') + '?3', + iconUrl: icon1.options.iconUrl + '?3', iconSize: L.point(expectedXY, expectedXY) });