change getDocument, delay needed, now 2 tests moved

This commit is contained in:
Karsten Hassel
2021-09-24 23:39:12 +02:00
parent a1c7f20990
commit c0ce52abe3
8 changed files with 57 additions and 96 deletions

View File

@@ -1,5 +1,10 @@
/**
* Suppresses errors concerning web server already shut down.
*
* @param {string} err The error message.
*/
function myError(err) {
if (err.includes("ECONNREFUSED")) {
if (err.includes("ECONNREFUSED") || err.includes("ECONNRESET") || err.includes("socket hang up")) {
jest.fn();
} else {
console.dir(err);