Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldesigndj committed Aug 16, 2023
1 parent 8a33626 commit c554158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/4_handler_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ export const fixtureTestWrapper = myTestWrapper([
// const fetch = wrapFetch();

Deno.test(
"The Dashboard should show a new login",
"The index page works",
{
sanitizeResources: false,
sanitizeOps: false,
},
fixtureTestWrapper(async (t: any) => {
await t.step("The dashboard shows nothing", async () => {
await t.step("The index page returns a 200 and 'Welcome'", async () => {
const response = await fetch(`${BASE_URL}`)
assertEquals(response.status, Status.OK)
const text = await response.text()
assert(!text.includes("<div>Flashed message: test</div>"))
assert(text.includes("Welcome"))
})
}),
)

0 comments on commit c554158

Please sign in to comment.