1
0
ergogen/test/helpers/point.js
2021-05-22 17:58:26 +02:00

6 lines
224 B
JavaScript

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] || {})
}