Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "select", | ||
"description": "A new kind of database library", | ||
"homepage": "http://selectjs.com", | ||
"version": "0.1.0", | ||
"author": "Alex R. Young <alex@alexyoung.org>", | ||
"repository": "git://github.com/alexyoung/select", | ||
"main": "./index.js", | ||
"engines": { "node": ">= 0.4.0" } | ||
"name": "select" | ||
, "description": "A new kind of database library" | ||
, "homepage": "http://selectjs.com" | ||
, "version": "0.1.1" | ||
, "author": "Alex R. Young <alex@alexyoung.org>" | ||
, "repository": "git://github.com/alexyoung/select" | ||
, "main": "./index.js" | ||
, "engines": { "node": ">= 0.4.0" } | ||
, "devDependencies": { | ||
"mongodb": "0.9.x" | ||
, "whiskey": "0.3.x" | ||
, "couch-client": ">= 0.0.4" | ||
, "mysql": "0.9.x" | ||
} | ||
} | ||
@@ -6,3 +6,3 @@ var select = require('select'), | ||
select(collection).raw(function(c, next) { | ||
c.remove(); | ||
c.remove(function() {}); | ||
next(); | ||
@@ -189,11 +189,13 @@ | ||
exports['test delete'] = function(test, assert) { | ||
select('users'). | ||
find(exampleID.toString()). | ||
del(function() { | ||
select('users'). | ||
find(exampleID.toString(), function(err, values) { | ||
assert.equal(0, values.length); | ||
test.finish(); | ||
}); | ||
}); | ||
fixtures('users4', function() { | ||
select('users4'). | ||
find({ 'name': 'Alex' }). | ||
del(function() { | ||
select('users4'). | ||
find({ 'name': 'Alex' }, function(err, values) { | ||
assert.equal(0, values.length); | ||
test.finish(); | ||
}); | ||
}); | ||
}); | ||
}; | ||
@@ -200,0 +202,0 @@ |
Sorry, the diff of this file is not supported yet
87186
1600
4