diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-10-07 16:47:35 +0000 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-10-07 16:47:35 +0000 |
| commit | e3f21afa451f8c8cb5743cd08fe3c3450ff5a75b (patch) | |
| tree | b4c426593d468bcf73c9dbfa904d6879191e88eb /src/routes.test.ts | |
| parent | 54e479f0db78ed3bfc0be94e9d7ecdb8c00ca187 (diff) | |
| download | ao-coverage-e3f21afa451f8c8cb5743cd08fe3c3450ff5a75b.tar.gz ao-coverage-e3f21afa451f8c8cb5743cd08fe3c3450ff5a75b.tar.bz2 ao-coverage-e3f21afa451f8c8cb5743cd08fe3c3450ff5a75b.zip | |
Use *.tmpl file extension over *.template
Diffstat (limited to 'src/routes.test.ts')
| -rw-r--r-- | src/routes.test.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/routes.test.ts b/src/routes.test.ts index 151bf90..12210bf 100644 --- a/src/routes.test.ts +++ b/src/routes.test.ts @@ -116,13 +116,7 @@ describe("templates", () => { describe("GET /sh", () => { it("should return the sh file containing the curl command", async () => { await persistTemplate({ - inputFile: path.join( - __dirname, - "..", - "public", - "templates", - "sh.template" - ), + inputFile: path.join(__dirname, "..", "public", "templates", "sh.tmpl"), outputFile: path.join(HOST_DIR, "sh"), context: { TARGET_URL }, } as Template); @@ -142,7 +136,7 @@ describe("templates", () => { "..", "public", "templates", - "index.html.template" + "index.html.tmpl" ), outputFile: path.join(HOST_DIR, "index.html"), context: { TARGET_URL, CURL_HTTPS: "--https " }, |
