Use more natural expectation
Previously the `|| null` was ensuring that the return type of the helper function was `HTMLElement | null`, rather than `HTMLElement | null | undefined`, which allowed the tests to check against just `null`. Instead of documenting that oddness, this just changes the tests to expect an HTMLElement (or not), removing the need to avoid `undefined`.
Showing
Please register or sign in to comment