Files
iD/test/spec/actions/add_entity.js
Bryan Housel 71b2d2c6b7 Upgrade legacy symbols in tests
- iD.Context -> iD.coreContext
- iD.Graph -> iD.coreGraph
- iD.Node -> iD.osmNode
- iD.Way -> iD.osmWay
- iD.Relation -> iD.osmRelation
2019-01-30 15:43:02 -05:00

8 lines
265 B
JavaScript

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