1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-27 12:26:23 -04:00
hugo-extended/test/index.js

15 lines
315 B
JavaScript

/* eslint-env node, mocha */
'use strict';
const { execFile } = require('child_process');
const assert = require('assert');
const hugo = require('..');
it('Hugo exists and runs?', async () => {
assert(execFile(hugo, ['env'], (error, stdout) => {
if (error) throw error;
console.log(stdout);
}));
});