Browse Source

added nodeunit for testing

mightyplow 8 years ago
parent
commit
ef1e7b05a8
2 changed files with 11 additions and 3 deletions
  1. 2 1
      .gitignore
  2. 9 2
      package.json

+ 2 - 1
.gitignore

@@ -1 +1,2 @@
-/.idea/
+.idea/
+node_modules/

+ 9 - 2
package.json

@@ -4,16 +4,23 @@
   "description": "js, helpers library",
   "main": "jslib.js",
   "dependencies": {
+    "nodeunit": "^0.10.2"
   },
   "devDependencies": {},
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "nodeunit": "nodeunit",
+    "test": "nodeunit tests"
   },
   "files": [
     "lib",
     "jslib.js"
   ],
-  "keywords": ["js", "javascript", "helpers", "library"],
+  "keywords": [
+    "js",
+    "javascript",
+    "helpers",
+    "library"
+  ],
   "author": {
     "name": "mightyplow",
     "email": "mightyplow@gmail.com",