Skip to content
Browse files

Updates for the latest node-mongodb-native

  • Loading branch information...
1 parent b2843f9 commit db77026d40ef2d40e7a0ad27661aabe365b677e2 Alex Young committed Jul 5, 2011
Showing with 16 additions and 14 deletions.
  1. +4 −4 Makefile
  2. +12 −10 test/mongodb_test.js
View
8 Makefile
@@ -1,16 +1,16 @@
all: test docs
test:
- @node_modules/whiskey/bin/whiskey --tests "test/memory_test.js test/mongodb_test.js test/mysql_test.js test/core_test.js" --print-stdout
+ @node_modules/whiskey/bin/whiskey --tests "test/memory_test.js test/mongodb_test.js test/mysql_test.js test/core_test.js"
testmongo:
- @node_modules/whiskey/bin/whiskey --tests "test/mongodb_test.js" --print-stdout --verbosity 2
+ @node_modules/whiskey/bin/whiskey --tests "test/mongodb_test.js" --verbosity 2
testmysql:
- @node_modules/whiskey/bin/whiskey --tests "test/mysql_test.js" --print-stdout --verbosity 2
+ @node_modules/whiskey/bin/whiskey --tests "test/mysql_test.js" --verbosity 2
testmemory:
- @node_modules/whiskey/bin/whiskey --tests "test/memory_test.js" --print-stdout --verbosity 2
+ @node_modules/whiskey/bin/whiskey --tests "test/memory_test.js" --verbosity 2
docs:
@dox --title select lib/select.js -i docs/intro.md > docs/index.html
View
22 test/mongodb_test.js
@@ -3,7 +3,7 @@ var select = require('select'),
function fixtures(collection, fn) {
select(collection).raw(function(c, next) {
- c.remove();
+ c.remove(function() {});
next();
select(collection).
@@ -185,15 +185,17 @@ exports['test find with default sort'] = function(test, assert) {
};
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();
+ });
+ });
+ });
};
exports['test delete with query'] = function(test, assert) {

0 comments on commit db77026

Please sign in to comment.
Something went wrong with that request. Please try again.