mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-05 02:41:21 +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);
|
|
});
|
|
});
|