Files
iD/test/spec/actions/delete_member.js
2013-05-22 17:41:06 -07:00

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([]);
});
});