1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-13 01:45:29 -04:00

Clean up tests

This commit is contained in:
2020-03-25 11:47:51 -04:00
parent 5f83a8752a
commit 1e11110408
3 changed files with 12 additions and 28 deletions
+2 -16
View File
@@ -5,21 +5,7 @@
const assert = require('assert');
const binCheck = require('bin-check');
const hugoBin = require('..');
const { execFile } = require('child_process');
it('Hugo exists and runs?', () => {
return binCheck(hugoBin, ['version']).then(works => {
assert(works);
// Print additional build environment variables if check successful
if (works) {
execFile(hugoBin, ['env'], (error, stdout) => {
if (error) {
throw error;
}
console.log(stdout);
});
}
});
it('Hugo exists and runs?', async () => {
assert(await binCheck(hugoBin, ['version']));
});