Files
iD/test/spec/actions/add_entity.js

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);
});
});