Skip to content

Commit 3e0e125

Browse files
committed
fixup: clean up login.test.ts
1 parent 786735e commit 3e0e125

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/browser/pages/login.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ import { JSDOM } from "jsdom"
22
import { LocationLike } from "../../unit/util.test"
33

44
describe("login", () => {
5-
// TODO test for when el is defined
65
describe("there is an element with id 'base'", () => {
7-
// let initialDom: Document
86
beforeEach(() => {
97
const dom = new JSDOM()
10-
// initialDom = dom.window.document
118
global.document = dom.window.document
129

1310
const location: LocationLike = {
@@ -36,7 +33,6 @@ describe("login", () => {
3633
spy.mockImplementation(() => mockElement)
3734
// Load file
3835
require("../../../src/browser/pages/login")
39-
// Called once by getOptions and the second in
4036

4137
const el: HTMLInputElement | null = document.querySelector("input#base")
4238
expect(el?.value).toBe("/hello-world")

0 commit comments

Comments
 (0)