Skip to content

Commit

Permalink
test(connection): repro #6756
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 26, 2018
1 parent db3645d commit 42ddc42
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/connection.test.js
Expand Up @@ -56,6 +56,13 @@ describe('connections:', function() {
}).catch(done);
});

it('throws helpful error with legacy syntax (gh-6756)', function(done) {
assert.throws(function() {
mongoose.createConnection('localhost', 'dbname', 27017);
}, /mongoosejs\.com.*connections\.html/);
done();
});

it('resolving with q (gh-5714)', function(done) {
var bootMongo = Q.defer();

Expand Down

0 comments on commit 42ddc42

Please sign in to comment.