Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs

  • Loading branch information...
commit 761f6cc6a9cc14dbe8a4b348958a96366c421d31 1 parent 327270e
@aheckmann aheckmann authored
Showing with 1 addition and 39 deletions.
  1. +1 −1  lib/connection.js
  2. +0 −38 test/common.js
View
2  lib/connection.js
@@ -47,11 +47,11 @@ Connection.prototype.__proto__ = EventEmitter.prototype;
/**
* Connection ready state:
- * 9 = Uninitialized
* 0 = Disconnected
* 1 = Connected
* 2 = Connecting
* 3 = Disconnecting
+ * 99 = Uninitialized
*
* Each state change emits its associated event name.
*
View
38 test/common.js
@@ -61,44 +61,6 @@ Collection.prototype.onClose = function(){
};
/**
- * Assert that a connection is open or that mongoose connections are open.
- * Examples:
- * mongoose.should.be.connected;
- * db.should.be.connected;
- *
- * @api public
- */
-
-// should.Assertion
-//Assertion.prototype.__defineGetter__('connected', function(){
- //if (this.obj instanceof Mongoose)
- //this.obj.connections.forEach(function(connected){
- //c.should.be.connected;
- //});
- //else
- //this.obj.readyState.should.eql(1);
-//});
-
-/**
- * Assert that a connection is closed or that a mongoose connections are closed.
- * Examples:
- * mongoose.should.be.disconnected;
- * db.should.be.disconnected;
- *
- * @api public
- */
-
-// should.Assertion
-//Assertion.prototype.__defineGetter__('disconnected', function(){
- //if (this.obj instanceof Mongoose)
- //this.obj.connections.forEach(function(){
- //c.should.be.disconnected;
- //});
- //else
- //this.obj.readyState.should.eql(0);
-//});
-
-/**
* Create a connection to the test database.
* You can set the environmental variable MONGOOSE_TEST_URI to override this.
*
Please sign in to comment.
Something went wrong with that request. Please try again.