1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 07:55:21 -04:00
hugo-extended/test/index.js
Jake Jarvis 5bb2ff0eb3
switch to ESM imports (drops node 10.x support)
also download assets to a temp dir instead of ./vendor
2021-08-31 11:56:33 -04:00

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);
}));
});