Compare commits

..

No commits in common. "4babd17383864ee7b4e625a9acc0d6688849eba4" and "21ada132b123a7f17f9378bc5439111ea11d93cc" have entirely different histories.

2 changed files with 2 additions and 29 deletions

View file

@ -53,38 +53,13 @@ const got = require("got");
const dayjs = require("dayjs");
const semver = require("semver");
const util = require("util");
const log = require("../server/log");
const packageJson = require("../package.json");
let token = process.env.CHANGELOG_TOKEN;
const readFile = util.promisify(fs.readFile);
const writeFile = util.promisify(fs.writeFile);
function timestamp() {
const datetime = new Date().toISOString().split(".")[0].replace("T", " ");
return colors.dim(datetime);
}
const log = {
/* eslint-disable no-console */
error(...args) {
console.error(timestamp(), colors.red("[ERROR]"), ...args);
},
warn(...args) {
console.error(timestamp(), colors.yellow("[WARN]"), ...args);
},
info(...args) {
console.log(timestamp(), colors.blue("[INFO]"), ...args);
},
debug(...args) {
console.log(timestamp(), colors.green("[DEBUG]"), ...args);
},
raw(...args) {
console.log(...args);
},
/* eslint-enable no-console */
};
const changelogPath = path.resolve(__dirname, "..", "CHANGELOG.md");
// CLI argument validations

View file

@ -39,12 +39,10 @@ describe("Server", function () {
});
after(function (done) {
// Tear down test fixtures in the order they were setup,
// in case setup crashed for any reason
server.close(done);
logInfoStub.restore();
logWarnStub.restore();
checkForUpdatesStub.restore();
server.close(done);
});
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions