From 124cfdbe28c5cf4ca34f561245133fc748c759eb Mon Sep 17 00:00:00 2001 From: John Weisz Date: Tue, 17 Dec 2024 17:35:58 -0500 Subject: [PATCH] use ts --- src/{Template.test.js => Template.test.ts} | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) rename src/{Template.test.js => Template.test.ts} (80%) diff --git a/src/Template.test.js b/src/Template.test.ts similarity index 80% rename from src/Template.test.js rename to src/Template.test.ts index 6efeaf77..0e9eea26 100644 --- a/src/Template.test.js +++ b/src/Template.test.ts @@ -2,10 +2,15 @@ import { renderFile } from "ejs"; import { join } from "path"; describe("button configuration renders correctly", () => { - const templatePath = join(__dirname, "..", "views", "login_selection.ejs"); + const templatePath: string = join( + __dirname, + "..", + "views", + "login_selection.ejs" + ); test("does not render element", async () => { - const html = await renderFile(templatePath, { + const html: string = await renderFile(templatePath, { login_gov_enabled: false, mhv_logon_enabled: false, ds_logon_enabled: false, @@ -17,7 +22,7 @@ describe("button configuration renders correctly", () => { }); test("does render element", async () => { - const html = await renderFile(templatePath, { + const html: string = await renderFile(templatePath, { login_gov_enabled: true, mhv_logon_enabled: true, ds_logon_enabled: true,