1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-27 11:18:29 -04:00
hugo-extended/test/index.js

15 lines
308 B
JavaScript

/* eslint-env node, mocha */
import { execFile } from "child_process";
import assert from "assert";
import hugo from "../index.js";
it("Hugo exists and runs?", async () => {
assert(execFile(hugo, ["env"], (error, stdout) => {
if (error) {
throw error;
}
console.log(stdout);
}));
});