mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
8 lines
265 B
JavaScript
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);
|
|
});
|
|
});
|