Dont fetch margin tiles when testing

(spy should be called 1 time, not 25 times)
This commit is contained in:
Bryan Housel
2018-06-22 15:32:35 -04:00
parent b7df31b747
commit 0c34ebdfed

View File

@@ -78,7 +78,7 @@ describe('iD.serviceStreetside', function() {
}
];
streetside.loadBubbles(context.projection);
streetside.loadBubbles(context.projection, 0); // 0 = don't fetch margin tiles
expect(spy).to.have.been.calledOnce;
});
@@ -109,7 +109,7 @@ describe('iD.serviceStreetside', function() {
}
];
streetside.loadBubbles(context.projection);
streetside.loadBubbles(context.projection, 0); // 0 = don't fetch margin tiles
expect(spy).to.have.been.not.called;
});
});