From f830bab4ec14f3fe814962a6a2dee180149c3a6a Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Mon, 20 Sep 2021 19:43:18 +0000 Subject: The Whole Barnshow Commit - Use yarn-berry instead of npm, with Zero Install feature and goodies - Add `initializeToken` to post unique token to logs on startup - Package upgrades - Fix index.html.template tests I will never do this again --- src/routes.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/routes.test.ts') diff --git a/src/routes.test.ts b/src/routes.test.ts index d761602..7f275b9 100644 --- a/src/routes.test.ts +++ b/src/routes.test.ts @@ -85,7 +85,7 @@ const request = async ( }; const HOST_DIR = configOrError("HOST_DIR"); -const TARGET_URL = process.env.TARGET_URL ?? "http://localhost:3000"; +const TARGET_URL = "https://localhost:3000"; describe("templates", () => { describe("GET /sh", () => { @@ -120,7 +120,7 @@ describe("templates", () => { "index.html.template" ), outputFile: path.join(HOST_DIR, "index.html"), - context: { TARGET_URL } + context: { TARGET_URL, CURL_HTTPS: "--https " } } as Template); const res = await (await request()) @@ -129,7 +129,7 @@ describe("templates", () => { .expect(200); expect(exit).not.toHaveBeenCalled(); expect(res.text).toMatch( - `curl --proto '=https' --tlsv1.2 -sSf ${TARGET_URL}/sh | sh` + `curl --https -sSf ${TARGET_URL}/sh | sh` ); }); }); -- cgit