mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-10-04 14:25:39 -04:00
refactor directory structure and modularize a few common functions
This commit is contained in:
9 files changed
+185
-141
No files matched your search
@@ -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);
|
||||
}));
|
||||
});
|
||||
Reference in new issue
Block a user