hapi-mongodb-init
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -38,3 +38,3 @@ var indexes = require("./indexes"); | ||
indexes.ensure(conn, config.indexes, plugin, callback); | ||
indexes.ensure(conn, config.indexes || [], plugin, callback); | ||
}); | ||
@@ -41,0 +41,0 @@ }; |
{ | ||
"name": "hapi-mongodb-init", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "initialises mongo db connections for hapi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -221,3 +221,15 @@ describe('db-init tests', function(){ | ||
}); | ||
it('should not break when indexes is missing', function(done){ | ||
p.register(plugin, { | ||
dbs: [{ | ||
connectionString: 'mongodb://127.0.0.1', | ||
name: 'myconnection' | ||
}], | ||
mongo: fakeMongo | ||
}, function(err){ | ||
done(err); | ||
}); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14803
360
1