2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-11 05:43:28 +00:00

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,