mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
8 lines
268 B
JavaScript
8 lines
268 B
JavaScript
describe('iD.actionAddEntity', function () {
|
|
it('adds an entity to the graph', function () {
|
|
var entity = iD.osmEntity(),
|
|
graph = iD.actionAddEntity(entity)(iD.coreGraph());
|
|
expect(graph.entity(entity.id)).to.equal(entity);
|
|
});
|
|
});
|