From c7934f2da5ab755f86fe7a9a23ef264eff0edab2 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 22 May 2022 14:28:04 +0100 Subject: [PATCH] Add outputModify func --- tests/helpers/run.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/helpers/run.js b/tests/helpers/run.js index 3ec85ab..58b6e05 100644 --- a/tests/helpers/run.js +++ b/tests/helpers/run.js @@ -29,6 +29,10 @@ const run = async (tests) => { errorEncountered = err1; } + if (test.outputModify) { + testOutput = test.outputModify(test.output); + } + if (test.error && test.error.shouldThrow) { if (errorEncountered !== false) { // eslint-disable-next-line no-console