We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 786735e commit 3e0e125Copy full SHA for 3e0e125
test/browser/pages/login.test.ts
@@ -2,12 +2,9 @@ import { JSDOM } from "jsdom"
2
import { LocationLike } from "../../unit/util.test"
3
4
describe("login", () => {
5
- // TODO test for when el is defined
6
describe("there is an element with id 'base'", () => {
7
- // let initialDom: Document
8
beforeEach(() => {
9
const dom = new JSDOM()
10
- // initialDom = dom.window.document
11
global.document = dom.window.document
12
13
const location: LocationLike = {
@@ -36,7 +33,6 @@ describe("login", () => {
36
33
spy.mockImplementation(() => mockElement)
37
34
// Load file
38
35
require("../../../src/browser/pages/login")
39
- // Called once by getOptions and the second in
40
41
const el: HTMLInputElement | null = document.querySelector("input#base")
42
expect(el?.value).toBe("/hello-world")
0 commit comments