From 70c4daf920ee26c376a49826be797d40d413b25e Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Sun, 27 Oct 2013 18:13:32 +0100 Subject: [PATCH] Typo --- test/db.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/db.test.js b/test/db.test.js index 664e95d..ac16d36 100644 --- a/test/db.test.js +++ b/test/db.test.js @@ -227,7 +227,7 @@ describe('Database', function () { * * So we need a way to check that the callback is called only once and the exception thrown is indeed the client exception * Mocha's exception handling mechanism interferes with this since it already registers a listener on uncaughtException - * which we need to use since findOne uses I/O so the callback is not called in the same turn of the event loop (so no try/catch) + * which we need to use since findOne is not called in the same turn of the event loop (so no try/catch) * So we remove all current listeners, put our own which when called will register the former listeners (incl. Mocha's) again. * * Note: maybe using an in-memory only NeDB would give us an easier solution