mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-26 07:55:21 -04:00
17 lines
323 B
JavaScript
17 lines
323 B
JavaScript
/* eslint-env node, mocha */
|
|
|
|
"use strict";
|
|
|
|
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);
|
|
}));
|
|
});
|