mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 11:49:39 +02:00
d3 style map
This commit is contained in:
+10
-1
@@ -3,13 +3,22 @@ describe('Map', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
container = d3.select('body').append('div');
|
||||
map = iD.Map(container.node());
|
||||
map = iD.Map();
|
||||
container.call(map);
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
container.remove();
|
||||
});
|
||||
|
||||
describe('#connection', function() {
|
||||
it('gets and sets connection', function() {
|
||||
var connection = {};
|
||||
expect(map.connection(connection)).toBe(map);
|
||||
expect(map.connection()).toBe(connection);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#zoom', function() {
|
||||
it('gets and sets zoom level', function() {
|
||||
expect(map.zoom(4)).toEqual(map);
|
||||
|
||||
Reference in New Issue
Block a user