diff --git a/lib/history.js b/lib/history.js
index a62bad1..80209ed 100644
--- a/lib/history.js
+++ b/lib/history.js
@@ -8,7 +8,7 @@ function push(item) {
 }
 
 function dump() {
-    history.toarray();
+    return history.toarray();
 }
 
 exports.push = push;