Files
iD/test/spec/behavior/lasso.js
2016-07-19 10:15:32 -04:00

25 lines
641 B
JavaScript

describe('iD.behavior.Lasso', function () {
var lasso, context;
beforeEach(function () {
context = iD.Context(window).imagery(iD.data.imagery);
context.container(d3.select(document.createElement('div')));
// Neuter connection
context.connection().loadTiles = function () {};
lasso = iD.behavior.Lasso(context);
d3.select(document.createElement('div'))
.call(context.map());
});
afterEach(function () {
lasso.off(context.surface());
});
it('can be initialized', function () {
expect(context.surface().call(lasso)).to.be.ok;
});
});