Skip to content

Commit bc27289

Browse files
committed
Remove unneeded helpers
1 parent 0e6a2c9 commit bc27289

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

tests/smoke/site/site.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { existsSync } from "../../../src/deno_ral/fs.ts";
77
import { dirname } from "../../../src/deno_ral/path.ts";
88
import { testQuartoCmd, Verify, TestContext, mergeTestContexts } from "../../test.ts";
9-
import { projectOutputForInput, restoreEnvVar, setEnvVar } from "../../utils.ts";
9+
import { projectOutputForInput } from "../../utils.ts";
1010
import { ensureHtmlElements, noErrorsOrWarnings } from "../../verify.ts";
1111

1212
export const testSite = (

tests/utils.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,4 @@ export function fileLoader(...path: string[]) {
189189
// On Windows, `quarto.cmd` needs to be explicit in `execProcess()`
190190
export function quartoDevCmd(): string {
191191
return Deno.build.os === "windows" ? "quarto.cmd" : "quarto";
192-
}
193-
194-
export function setEnvVar(name: string, value: string): string | undefined {
195-
const originalValue = Deno.env.get(name);
196-
Deno.env.set(name, value);
197-
return originalValue;
198-
}
199-
200-
export function restoreEnvVar(name: string, originalValue: string | undefined): void {
201-
if (originalValue !== undefined) {
202-
Deno.env.set(name, originalValue);
203-
} else {
204-
Deno.env.delete(name);
205-
}
206192
}

0 commit comments

Comments
 (0)