mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
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
23 lines
581 B
JavaScript
23 lines
581 B
JavaScript
describe('iD.rendererTileLayer', function() {
|
|
var context, d, c;
|
|
|
|
beforeEach(function() {
|
|
context = iD.coreContext().assetPath('../dist/').init();
|
|
d = d3.select(document.createElement('div'));
|
|
c = iD.rendererTileLayer(context).projection(d3.geoMercator());
|
|
});
|
|
|
|
afterEach(function() {
|
|
d.remove();
|
|
});
|
|
|
|
it('is instantiated', function() {
|
|
expect(c).to.be.ok;
|
|
});
|
|
|
|
it('#dimensions', function() {
|
|
expect(c.dimensions([100, 100])).to.equal(c);
|
|
expect(c.dimensions()).to.eql([100,100]);
|
|
});
|
|
});
|