update signature of coord/pixel functions in Util.spec.js

This commit is contained in:
Devin Howard 2016-10-26 14:12:52 +08:00
parent 0f76d83a6e
commit 17ce74e473

View file

@ -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')
}) })