hardlounge/test/fixtures/env.js

14 lines
415 B
JavaScript
Raw Normal View History

"use strict";
const fs = require("fs");
const home = require("path").join(__dirname, ".thelounge");
2016-05-09 16:34:51 +00:00
require("../../src/helper").setHome(home);
const STSPolicies = require("../../src/plugins/sts"); // Must be imported *after* setHome
exports.mochaGlobalTeardown = async function () {
STSPolicies.refresh.cancel(); // Cancel debounced function, so it does not write later
fs.unlinkSync(STSPolicies.stsFile);
};