Tidied up test runner. Passing tests are no longer printed to the console.

This commit is contained in:
n1474335 2019-08-20 17:13:05 +01:00
parent 148dcbb0c5
commit 772c6bbba5
3 changed files with 35 additions and 29 deletions

View file

@ -48,6 +48,7 @@ class TestRegister {
* Runs all the tests in the register.
*/
runTests () {
console.log("Running tests...");
return Promise.all(
this.tests.map(function(test, i) {
const chef = new Chef();
@ -103,6 +104,8 @@ class TestRegister {
* Run all api related tests and wrap results in report format
*/
runApiTests() {
console.log("Running tests...");
return Promise.all(this.apiTests.map(async function(test, i) {
const result = {
test: test,