From 6dd7b4ef02f79dbd06dfad349cabc3fa8b1e9b4c Mon Sep 17 00:00:00 2001 From: Eduardo Sorribas Date: Thu, 9 Jan 2014 15:32:30 -0400 Subject: [PATCH] Add a remove statement to the insert test case. --- tests/test-insert.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-insert.js b/tests/test-insert.js index a4fe7d2..a8a6085 100644 --- a/tests/test-insert.js +++ b/tests/test-insert.js @@ -6,5 +6,7 @@ db.a.insert([{name: "Squirtle"}, {name: "Charmander"}, {name: "Bulbasaur"}], fun assert.ok(docs[0]._id); assert.ok(docs[1]._id); assert.ok(docs[2]._id); - db.close(); + db.a.remove(function() { + db.close(); + }); });