diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-20 19:43:18 +0000 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-20 19:43:18 +0000 |
| commit | f830bab4ec14f3fe814962a6a2dee180149c3a6a (patch) | |
| tree | 9a7c3138c0afd2ce5423002d6d8163bbf39ea318 /src/routes.test.ts | |
| parent | 67c22d10e4583e29d33933e4b1b88f9d02f3da47 (diff) | |
| download | ao-coverage-f830bab4ec14f3fe814962a6a2dee180149c3a6a.tar.gz ao-coverage-f830bab4ec14f3fe814962a6a2dee180149c3a6a.tar.bz2 ao-coverage-f830bab4ec14f3fe814962a6a2dee180149c3a6a.zip | |
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
Diffstat (limited to 'src/routes.test.ts')
| -rw-r--r-- | src/routes.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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` ); }); }); |
