Add some initial test cases

This commit is contained in:
Johannes Zellner
2018-06-25 00:28:42 +02:00
parent 2da0ae6dc0
commit 3a22716df6
5 changed files with 362 additions and 35 deletions
+7 -1
View File
@@ -4,7 +4,7 @@
"description": "Cloudron Syslog Daemon listening on port 2514",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "./node_modules/.bin/mocha ./test.js"
},
"bin": {
"cloudron-syslog": "./index.js"
@@ -19,5 +19,11 @@
"mkdirp": "^0.5.1",
"nsyslog-parser": "^0.8.1",
"yargs": "^11.0.0"
},
"devDependencies": {
"expect.js": "^0.3.1",
"grepit": "^1.0.0",
"mocha": "^5.2.0",
"rimraf": "^2.6.2"
}
}