mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -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;
|
||||
}
|
||||
|
||||
if (test.outputModify) {
|
||||
testOutput = test.outputModify(test.output);
|
||||
}
|
||||
|
||||
if (test.error && test.error.shouldThrow) {
|
||||
if (errorEncountered !== false) {
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue