Also tested that the datafile isnt modified if a bulk insert fails

pull/2/head
Louis Chatriot 11 years ago
parent e5b57799e9
commit fb640b308e
  1. 1
      test/db.test.js

@ -215,6 +215,7 @@ describe('Database', function () {
d.find({}, function (err, docs) {
docs.length.should.equal(0);
fs.readFileSync(testDb, 'utf8').length.should.equal(0); // Datafile not written to
done();
});

Loading…
Cancel
Save