Add unit test for anchors
This commit is contained in:
parent
76bb07183b
commit
c7b86c7556
4 changed files with 128 additions and 17 deletions
6
test/helpers/point.js
Normal file
6
test/helpers/point.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
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] || {})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue