Skip to content

Commit

Permalink
use ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmweisz committed Dec 17, 2024
1 parent 329b623 commit 124cfdb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Template.test.js → src/Template.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 124cfdb

Please sign in to comment.