ergogen/test/helpers/point.js

6 lines
224 B
JavaScript
Raw Normal View History

2021-05-22 17:58:26 +02:00
exports.check = (point, expected=[]) => {
point.x.should.equal(expected[0] || 0)
point.y.should.equal(expected[1] || 0)
point.r.should.equal(expected[2] || 0)
point.meta.should.deep.equal(expected[3] || {})
}