refactor directory structure and modularize a few common functions

This commit is contained in:
jake committed 2021-10-09 11:03:39 -04:00
1 parent 64f91f5b8e
commit 757a061ebe
9 files changed
+185 -141

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
/* eslint-env node, mocha */
import { execFile } from "child_process";
import assert from "assert";
import hugo from "../index.js";
it("Hugo exists and runs?", async function () {
this.timeout(30000); // increase timeout to an excessive 30 seconds for CI
assert(execFile(hugo, ["env"], function (error, stdout) {
if (error) {
throw error;
}
console.log(stdout);
}));
});