Round the transform values in makeProjectionTransform test

This commit is contained in:
Frederic Junod
2019-06-04 14:00:39 +02:00
parent 02ce2f4bec
commit 91d49b26b5

View File

@@ -213,7 +213,10 @@ describe('ol.webgl.WebGLHelper', function() {
scaleTransform(expected, scaleX, scaleY);
rotateTransform(expected, -frameState.viewState.rotation);
translateTransform(expected, -frameState.viewState.center[0], -frameState.viewState.center[1]);
expect(h.makeProjectionTransform(frameState, given)).to.eql(expected);
h.makeProjectionTransform(frameState, given);
expect(given.map(val => val.toFixed(15))).to.eql(expected.map(val => val.toFixed(15)));
});
});