12 lines
396 B
TypeScript
12 lines
396 B
TypeScript
import assert from "node:assert/strict";
|
|
import { resolveServiceToken } from "../src/config.js";
|
|
|
|
assert.equal(resolveServiceToken({}), "", "missing SERVICE_TOKEN must resolve to an empty config value");
|
|
assert.equal(
|
|
resolveServiceToken({ SERVICE_TOKEN: "explicit" }),
|
|
"explicit",
|
|
"explicit SERVICE_TOKEN must be preserved",
|
|
);
|
|
|
|
console.log("service-token-config: all assertions passed");
|