Add first test

Why:

- Every journey starts with a first step

This change addresses the need by:

- Adding jest and a test
- Resolve ESLint warnings/errors in the tested function
This commit is contained in:
Moritz Ulmer
2023-03-20 16:08:50 +01:00
parent de997aca7e
commit 6366f9132b
5 changed files with 276 additions and 63 deletions

View File

@@ -12,7 +12,7 @@
"prebuild": "rimraf build",
"build": "grunt build",
"start": "nodemon utils/server.js",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"prettier": "npx prettier --write src/**/*.* css/**/*.*",
"lint": "npx eslint src",
"lint:fix": "npx eslint --fix src"
@@ -39,6 +39,7 @@
"grunt-cli": "^1.2.0",
"grunt-closure-tools": "^1.0.0",
"grunt-contrib-concat": "^1.0.1",
"jest": "^29.5.0",
"nodemon": "^1.19.4",
"rimraf": "^2.7.1"
}