mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
25 lines
567 B
JavaScript
25 lines
567 B
JavaScript
describe('iD.Background', function() {
|
|
var c, d;
|
|
|
|
beforeEach(function() {
|
|
d = d3.select(document.createElement('div'));
|
|
c = iD.Background().projection(d3.geo.mercator());
|
|
d.call(c);
|
|
});
|
|
|
|
afterEach(function() {
|
|
d.remove();
|
|
});
|
|
|
|
describe('iD.Background', function() {
|
|
it('is instantiated', function() {
|
|
expect(c).to.be.ok;
|
|
});
|
|
|
|
it('#size', function() {
|
|
expect(c.size([100, 100])).to.equal(c);
|
|
expect(c.size()).to.eql([100,100]);
|
|
});
|
|
});
|
|
});
|