d4cc2dd361
* Remove config from Helper Helper is the usual util grab bag of useful stuff. Somehow the config ended up there historically but structurally that doesn't make any sense. * Add cert folder to prettier ignore file
14 lines
415 B
JavaScript
14 lines
415 B
JavaScript
"use strict";
|
|
|
|
const fs = require("fs");
|
|
|
|
const home = require("path").join(__dirname, ".thelounge");
|
|
require("../../src/config").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);
|
|
};
|