mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 09:45:55 -07:00
Add outputModify func
This commit is contained in:
parent
b52aa4c93b
commit
c7934f2da5
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,10 @@ const run = async (tests) => {
|
||||||
errorEncountered = err1;
|
errorEncountered = err1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (test.outputModify) {
|
||||||
|
testOutput = test.outputModify(test.output);
|
||||||
|
}
|
||||||
|
|
||||||
if (test.error && test.error.shouldThrow) {
|
if (test.error && test.error.shouldThrow) {
|
||||||
if (errorEncountered !== false) {
|
if (errorEncountered !== false) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue