Ensure functions are always called with the same number of args

This commit is contained in:
Andreas Hocevar
2015-04-21 08:21:31 +02:00
parent 8fd4e2c7c5
commit 4f8dca92ba
4 changed files with 19 additions and 18 deletions

View File

@@ -55,7 +55,7 @@ describe('ol.renderer.canvas.Map', function() {
};
renderer.renderFrame(frameState);
// precompose without wrapX
expect(spy.getCall(0).args[2]).to.be(undefined);
expect(spy.getCall(0).args[2]).to.be(false);
// postcompose with wrapX
expect(spy.getCall(1).args[2]).to.be(true);
});