You've already forked hugo-extended
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:
@@ -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);
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user