diff --git a/index.js b/index.js
new file mode 100644
index 0000000..e69de29
diff --git a/package.json b/package.json
index 6a77f86..6db7043 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
   "description": "Store DOMPUL stock in Redis",
   "main": "index.js",
   "scripts": {
-    "test": "node test.js"
+    "test": "mocha"
   },
   "repository": {
     "type": "git",
diff --git a/test/test.js b/test/test.js
new file mode 100644
index 0000000..699eadb
--- /dev/null
+++ b/test/test.js
@@ -0,0 +1,7 @@
+var assert = require('assert');
+
+describe('Main', function() {
+    it('should return 0', function () {
+        assert.equal(0, [6,7,8].indexOf(6));
+    });
+});