1
0
Fork 0

GraphViewer: Fixed a test for the adapter which should inform the ModJoiner if a community is dissolved, not expanded

This commit is contained in:
Michael Hackstein 2013-08-07 13:58:50 +02:00
parent 910a31bdbd
commit f819dec367
1 changed files with 2 additions and 2 deletions

View File

@ -1618,7 +1618,7 @@
});
it('should be informed if a community is expanded', function() {
it('should be informed if a community is dissolved', function() {
var n1, n2, n3,
e1, e2;
n1 = {
@ -1662,7 +1662,7 @@
expect(mockWrapper.call).wasCalledWith("deleteEdge", n1._id, n2._id);
expect(mockWrapper.call).wasCalledWith("deleteEdge", n2._id, n3._id);
adapter.setNodeLimit(100);
adapter.expandCommunity(getCommunityNodes()[0]);
adapter.dissolveCommunity(getCommunityNodes()[0]);
expect(mockWrapper.call).wasCalledWith("insertEdge", n1._id, n2._id);
expect(mockWrapper.call).wasCalledWith("insertEdge", n2._id, n3._id);
});