mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
Rename removeMember -> removeMembersWithID
This commit is contained in:
@@ -128,10 +128,10 @@ describe('iD.Relation', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe("#removeMember", function () {
|
||||
it("removes a member", function () {
|
||||
var r = iD.Relation({members: [{id: 'a'}]});
|
||||
expect(r.removeMember('a').members).to.eql([]);
|
||||
describe("#removeMembersWithID", function () {
|
||||
it("removes members with the given ID", function () {
|
||||
var r = iD.Relation({members: [{id: 'a'}, {id: 'b'}, {id: 'a'}]});
|
||||
expect(r.removeMembersWithID('a').members).to.eql([{id: 'b'}]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user