mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
import test from "ava";
|
|
|
|
import { Env, ReadOnlyEnv } from "./environment";
|
|
import { getTestEnv, setupTests } from "./testing-utils";
|
|
|
|
setupTests(test);
|
|
|
|
test("isTestingEnv() is true", (t) => {
|
|
t.true(new ReadOnlyEnv(process.env).isTestingEnv());
|
|
t.true(new Env(process.env).isTestingEnv());
|
|
t.true(getTestEnv().isTestingEnv());
|
|
});
|