@neume-network/core
Version:
neume network is a community-owned network to scale music and web3 - connecting Artist DAOs, Tokens, NFTs and whatever comes next.
17 lines (13 loc) • 398 B
JavaScript
// @format
import test from "ava";
import { validate, requiredVars } from "../src/environment.mjs";
import { NotFoundError } from "../src/errors.mjs";
test("environment validation function", (t) => {
t.throws(() => validate(["non-existent-env-var"]), {
instanceOf: NotFoundError,
});
t.truthy(requiredVars);
t.true(requiredVars.length > 0);
validate(requiredVars);
t.pass();
});