Files
iD/test/spec/actions/add_entity.js
2013-01-31 12:06:21 -05:00

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