Comparing version 0.1.13 to 0.1.14
0.1.14 / 2012-07-09 | ||
=================== | ||
* Use any debug. [visionmedia] | ||
* Use any mocha. [visionmedia] | ||
0.1.13 / 2012-05-28 | ||
@@ -3,0 +9,0 @@ =================== |
@@ -216,4 +216,4 @@ | ||
// query | ||
debug('%s remove "%j" with "%j"', this.name, search, update); | ||
this.col.update(search, this.opts(opts), promise.fulfill); | ||
debug('%s remove "%j" with "%j"', this.name, search, opts); | ||
this.col.remove(search, this.opts(opts), promise.fulfill); | ||
@@ -220,0 +220,0 @@ return promise; |
{ | ||
"name": "monk" | ||
, "version": "0.1.13" | ||
, "version": "0.1.14" | ||
, "main": "lib/monk.js" | ||
@@ -8,8 +8,8 @@ , "tags": ["mongodb", "mongo", "driver"] | ||
"mongoskin": "0.3.6" | ||
, "debug": "0.6.x" | ||
, "debug": "*" | ||
} | ||
, "devDependencies": { | ||
"mocha": "1.0.x" | ||
"mocha": "*" | ||
, "expect.js": "0.1.x" | ||
} | ||
} |
@@ -173,2 +173,18 @@ | ||
describe('remove', function () { | ||
it('should remove a document', function (done) { | ||
users.insert({ name: 'Tobi' }, function (err, doc) { | ||
if (err) return done(err); | ||
users.remove({ name: 'Tobi' }, function (err) { | ||
if (err) return done(err); | ||
users.find({ name: 'Tobi' }, function (err, doc) { | ||
if (err) return done(err); | ||
expect(doc).to.eql([]); | ||
done(); | ||
}) | ||
}) | ||
}) | ||
}) | ||
}) | ||
describe('findAndModifying', function () { | ||
@@ -279,6 +295,6 @@ it('should alter an existing document', function (done) { | ||
it('remove', function () { | ||
var p = users.findOne(); | ||
var p = users.remove(); | ||
expect(p).to.be.a(Promise); | ||
expect(p.col).to.be(users); | ||
expect(p.type).to.be('findOne'); | ||
expect(p.type).to.be('remove'); | ||
}); | ||
@@ -285,0 +301,0 @@ |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
32662
945
1
+ Addeddebug@4.4.0(transitive)
+ Addedms@2.1.3(transitive)
- Removeddebug@0.6.0(transitive)
Updateddebug@*