chore: Fix the testing of the output.ts

This commit is contained in:
BluJ
2023-03-28 11:37:17 -06:00
parent 5943d961ed
commit 5f9a9ea4ff
10 changed files with 172 additions and 182 deletions

View File

@@ -40,8 +40,8 @@ async function timeoutHealth(
const defaultParams = {
defaultIntervalS: 60,
defaultTimeoutS: 10,
defaultDelayS: 10
}
defaultDelayS: 10,
};
export default function healthRunner(
name: string,
@@ -52,15 +52,14 @@ export default function healthRunner(
/** \
* All values in seconds
* defaults:
* interval: 60s
* timeout: 10s
* delay: 10s
*/
create(effects: Types.Effects, {
interval = 60,
timeout = 10,
delay = 10,
} = {}) {
* interval: 60s
* timeout: 10s
* delay: 10s
*/
create(
effects: Types.Effects,
{ interval = 60, timeout = 10, delay = 10 } = {}
) {
let running: any;
function startFn() {
clearInterval(running);