update signature of coord/pixel functions in Util.spec.js
This commit is contained in:
parent
0f76d83a6e
commit
17ce74e473
1 changed files with 4 additions and 4 deletions
|
@ -44,15 +44,15 @@ describe('Metamaps.Util.js', function () {
|
||||||
})
|
})
|
||||||
describe('coordsToPixels', function () {
|
describe('coordsToPixels', function () {
|
||||||
it('returns 0,0 for null canvas', function () {
|
it('returns 0,0 for null canvas', function () {
|
||||||
expect(Util.coordsToPixels(null).x).to.equal(0)
|
expect(Util.coordsToPixels(null, {}).x).to.equal(0)
|
||||||
expect(Util.coordsToPixels(null).y).to.equal(0)
|
expect(Util.coordsToPixels(null, {}).y).to.equal(0)
|
||||||
})
|
})
|
||||||
it.skip('TODO need initialized mGraph to test further')
|
it.skip('TODO need initialized mGraph to test further')
|
||||||
})
|
})
|
||||||
describe('pixelsToCoords', function () {
|
describe('pixelsToCoords', function () {
|
||||||
it('returns 0,0 for null canvas', function () {
|
it('returns 0,0 for null canvas', function () {
|
||||||
expect(Util.pixelsToCoords(null).x).to.equal(0)
|
expect(Util.pixelsToCoords(null, {}).x).to.equal(0)
|
||||||
expect(Util.pixelsToCoords(null).y).to.equal(0)
|
expect(Util.pixelsToCoords(null, {}).y).to.equal(0)
|
||||||
})
|
})
|
||||||
it.skip('TODO need initialized mGraph to test further')
|
it.skip('TODO need initialized mGraph to test further')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue