1
0
Fork 0
This commit is contained in:
Alan Plum 2015-07-21 15:18:44 +02:00
parent ce4d3b61c3
commit 977a9acd6e
1 changed files with 19 additions and 0 deletions

View File

@ -403,6 +403,25 @@
"collection/:colid/:docid" ,
"shell",
"query",
"logs",
"api",
"databases",
"application/installed/:key",
"application/available/:key",
"applications",
"graphManagement",
"userManagement",
"userProfile" ,
"testing"
];
this.addMatchers({
toDefineTheRoutes: function (exp) {
var avail = this.actual,
leftDiff = _.difference(avail, exp),
rightDiff = _.difference(exp, avail);
this.message = function () {
var msg = "";
if (rightDiff.length) {
msg += "Expect routes: "
+ rightDiff.join(' & ')
+ " to be available.\n";