mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-11 21:56:00 +00:00
10 lines
411 B
JavaScript
10 lines
411 B
JavaScript
describe("iD.actions.DeleteMember", function () {
|
|
it("removes the member at the specified index", function () {
|
|
var node = iD.Node(),
|
|
relation = iD.Relation({members: [{id: node.id}]}),
|
|
action = iD.actions.DeleteMember(relation.id, 0),
|
|
graph = action(iD.Graph([node, relation]));
|
|
expect(graph.entity(relation.id).members).to.eql([]);
|
|
});
|
|
});
|