1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-11-17 08:30:51 -05:00

Switch to more modern and lightweight dependencies

This commit is contained in:
2021-06-01 19:15:48 -04:00
parent 2c4d747aee
commit d87c63f5d3
8 changed files with 253 additions and 1895 deletions

View File

@@ -2,10 +2,13 @@
'use strict';
const { execFile } = require('child_process');
const assert = require('assert');
const binCheck = require('bin-check');
const hugoBin = require('..');
const hugo = require('..');
it('Hugo exists and runs?', async () => {
assert(await binCheck(hugoBin, ['version']));
assert(execFile(hugo, ['env'], (error, stdout) => {
if (error) throw error;
console.log(stdout);
}));
});