mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
24 lines
563 B
JavaScript
24 lines
563 B
JavaScript
describe('iD.TileLayer', function() {
|
|
var c, d;
|
|
|
|
beforeEach(function() {
|
|
d = d3.select(document.createElement('div'));
|
|
c = iD.TileLayer().projection(d3.geo.mercator());
|
|
});
|
|
|
|
afterEach(function() {
|
|
d.remove();
|
|
});
|
|
|
|
describe('iD.TileLayer', function() {
|
|
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]);
|
|
});
|
|
});
|
|
});
|