Files
iD/test/spec/actions/add_entity.js
2016-06-14 16:34:52 +05:30

8 lines
265 B
JavaScript

describe('iD.actions.AddEntity', function () {
it('adds an entity to the graph', function () {
var entity = iD.Entity(),
graph = iD.actions.AddEntity(entity)(iD.Graph());
expect(graph.entity(entity.id)).to.equal(entity);
});
});