Skip to content

Commit 42ddc42

Browse files
committedJul 26, 2018
test(connection): repro #6756
1 parent db3645d commit 42ddc42

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎test/connection.test.js

+7
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ describe('connections:', function() {
5656
}).catch(done);
5757
});
5858

59+
it('throws helpful error with legacy syntax (gh-6756)', function(done) {
60+
assert.throws(function() {
61+
mongoose.createConnection('localhost', 'dbname', 27017);
62+
}, /mongoosejs\.com.*connections\.html/);
63+
done();
64+
});
65+
5966
it('resolving with q (gh-5714)', function(done) {
6067
var bootMongo = Q.defer();
6168

0 commit comments

Comments
 (0)
Please sign in to comment.