From 8dc5c7be6f68df962a74e652ba2928794fd81975 Mon Sep 17 00:00:00 2001 From: John Weisz Date: Tue, 17 Dec 2024 17:50:20 -0500 Subject: [PATCH] remove test --- package.json | 1 - src/Template.test.ts | 38 -------------------------------------- 2 files changed, 39 deletions(-) delete mode 100644 src/Template.test.ts diff --git a/package.json b/package.json index 27f43e9a..85f1b276 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,6 @@ "yargs": "^16.2.0" }, "devDependencies": { - "@types/ejs": "^3.1.5", "@types/express": "^4.17.11", "@types/jest": "^27.0.1", "@types/node": "^14.14.37", diff --git a/src/Template.test.ts b/src/Template.test.ts deleted file mode 100644 index 0e9eea26..00000000 --- a/src/Template.test.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { renderFile } from "ejs"; -import { join } from "path"; - -describe("button configuration renders correctly", () => { - const templatePath: string = join( - __dirname, - "..", - "views", - "login_selection.ejs" - ); - - test("does not render element", async () => { - const html: string = await renderFile(templatePath, { - login_gov_enabled: false, - mhv_logon_enabled: false, - ds_logon_enabled: false, - id_me_login_link: "something", - }); - expect(html).not.toMatch(/DS Logon/); - expect(html).not.toMatch(/My HealtheVet/); - expect(html).not.toMatch(/Login.gov<\/title>/); - }); - - test("does render element", async () => { - const html: string = await renderFile(templatePath, { - login_gov_enabled: true, - mhv_logon_enabled: true, - ds_logon_enabled: true, - id_me_login_link: "something", - mhv_login_link: "something", - dslogon_login_link: "something", - login_gov_login_link: "something", - }); - expect(html).toMatch(/DS Logon/); - expect(html).toMatch(/My HealtheVet/); - expect(html).toMatch(/<title>Login.gov<\/title>/); - }); -});