-
-
Save kadams54/8a32eeee81e62031f17c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/test_model.js b/test/test_model.js | |
index b287403..5975fd2 100644 | |
--- a/test/test_model.js | |
+++ b/test/test_model.js | |
@@ -525,6 +525,34 @@ describe('test_model.js', function() { | |
false, 'compare set 4 failed'); | |
}); | |
+ it.only('can compare two diff endpoint sets with a common origin', function() { | |
+ var relations = new models.RelationList(); | |
+ var endpointSetA = [ | |
+ ['shard3', { | |
+ name: 'database', | |
+ role: 'provider' | |
+ }], | |
+ ['mongos', { | |
+ name: 'mongos', | |
+ role: 'requirer' | |
+ }] | |
+ ]; | |
+ var endpointSetB = [ | |
+ ['shard1', { | |
+ name: 'database', | |
+ role: 'provider' | |
+ }], | |
+ ['mongos', { | |
+ name: 'mongos', | |
+ role: 'requirer' | |
+ }] | |
+ ]; | |
+ | |
+ assert.equal( | |
+ relations.compareRelationEndpoints(endpointSetA, endpointSetB), | |
+ false, | |
+ 'compare set 1 failed'); | |
+ }); | |
it('must be able to reference the Environment model', function() { | |
var db = new models.Database(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment