mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
20 lines
481 B
JavaScript
20 lines
481 B
JavaScript
describe('iD.behaviorLasso', function () {
|
|
var context, lasso;
|
|
|
|
beforeEach(function () {
|
|
context = iD.Context();
|
|
d3.select(document.createElement('div'))
|
|
.attr('id', 'map')
|
|
.call(context.map());
|
|
lasso = iD.behaviorLasso(context);
|
|
});
|
|
|
|
afterEach(function () {
|
|
lasso.off(context.surface());
|
|
});
|
|
|
|
it('can be initialized', function () {
|
|
expect(context.surface().call(lasso)).to.be.ok;
|
|
});
|
|
});
|