mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 17:52:55 +00:00
- iD.Context -> iD.coreContext - iD.Graph -> iD.coreGraph - iD.Node -> iD.osmNode - iD.Way -> iD.osmWay - iD.Relation -> iD.osmRelation
8 lines
265 B
JavaScript
8 lines
265 B
JavaScript
describe('iD.actionAddEntity', function () {
|
|
it('adds an entity to the graph', function () {
|
|
var entity = iD.Entity(),
|
|
graph = iD.actionAddEntity(entity)(iD.coreGraph());
|
|
expect(graph.entity(entity.id)).to.equal(entity);
|
|
});
|
|
});
|