Files
iD/test/spec/behavior/lasso.js
Bryan Housel 33fab5580b Before calling init() make sure the assetPath is set
init kicks off building the ui, which can fetch spritesheets for the <defs>
The assetPath needs to be set otherwise these files will not be found
2021-08-16 22:06:42 -04:00

20 lines
522 B
JavaScript

describe('iD.behaviorLasso', function () {
var context, lasso;
beforeEach(function () {
context = iD.coreContext().assetPath('../dist/').init();
d3.select(document.createElement('div'))
.attr('class', 'main-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;
});
});