testbeats
Version:
Publish test results to Microsoft Teams, Google Chat, Slack and InfluxDB
19 lines (15 loc) • 388 B
JavaScript
const { STATUS } = require("../helpers/constants");
async function run({ target }) {
target.inputs = Object.assign({}, default_inputs, target.inputs);
await new Promise(resolve => setTimeout(resolve, target.inputs.seconds * 1000));
}
const default_options = {
condition: STATUS.PASS_OR_FAIL
}
const default_inputs = {
seconds: 5
}
module.exports = {
run,
default_options
}