"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wait = wait;
exports.tamper = tamper;
const tslib_1 = require("tslib");
const fs = tslib_1.__importStar(require("fs-extra"));
function wait(dt) {
    return new Promise(resolve => {
        setTimeout(() => resolve(null), dt);
    });
}
async function tamper(p, r) {
    await wait(2000);
    if (!r)
        await fs.remove(p);
    else
        await fs.writeFile(p, r);
}
