Files
iD/test/spec/behavior/lasso.js
Tom MacWright 7e9a427a2b Test getPrototype, use American spellings, fix test formatting.
* Stub Lasso test
* Add cmd test
2013-03-05 17:59:50 -05:00

24 lines
533 B
JavaScript

describe("iD.behavior.Lasso", function () {
var lasso, context;
beforeEach(function () {
context = iD();
// 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;
});
});