mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-27 16:03:52 +00:00
Dont fetch margin tiles when testing
(spy should be called 1 time, not 25 times)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user