Files
Epicnabbo-Catalogus-Updated…/scripts/docker-start.import.test.mjs
T

14 lines
440 B
JavaScript

import assert from "node:assert/strict";
import { spawnSync } from "node:child_process";
const result = spawnSync(
process.execPath,
[
"--input-type=module",
"-e",
"import {validateRuntime} from './scripts/docker-start.mjs';try{validateRuntime({});process.exit(1)}catch(error){if(!error.message.startsWith('Invalid runtime configuration'))throw error}",
],
{ encoding: "utf8" },
);
assert.equal(result.status, 0, result.stderr);