1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-10-16 12:14:26 -04:00

test: switch to a suite for the first test too

This commit is contained in:
XhmikosR
2023-03-17 09:23:17 +02:00
parent 9985b1c985
commit 0781627444

View File

@@ -1,16 +1,19 @@
import { strict as assert } from 'node:assert'; import { strict as assert } from 'node:assert';
import process from 'node:process'; import process from 'node:process';
import binCheck from 'bin-check'; import binCheck from 'bin-check';
import { test, suite } from 'uvu'; import { suite } from 'uvu';
import hugoBin from '../index.js'; import hugoBin from '../index.js';
import hugoLib from '../lib/index.js'; import hugoLib from '../lib/index.js';
test('should return path to binary and work', async () => {
const hugoLibWorksSuite = suite('hugo-bin works');
hugoLibWorksSuite('should return path to binary and work', async () => {
const works = await binCheck(hugoBin, ['version']); const works = await binCheck(hugoBin, ['version']);
assert.equal(works, true); assert.equal(works, true);
}); });
test.run(); hugoLibWorksSuite.run();
/** /**
* Verify Custom/Enterprise Repository overwrite. * Verify Custom/Enterprise Repository overwrite.