Commit 8ba1b9a8 authored by Robert Knight's avatar Robert Knight

Ignore defaults for `scrollElementIntoView` in code coverage

parent 1194f28c
...@@ -49,7 +49,7 @@ export function offsetRelativeTo(element, parent) { ...@@ -49,7 +49,7 @@ export function offsetRelativeTo(element, parent) {
export async function scrollElement( export async function scrollElement(
element, element,
offset, offset,
/* istanbul ignore next - default options are overridden in tests */ /* istanbul ignore next - defaults are overridden in tests */
{ maxDuration = 500 } = {} { maxDuration = 500 } = {}
) { ) {
const startOffset = element.scrollTop; const startOffset = element.scrollTop;
...@@ -81,6 +81,7 @@ export async function scrollElement( ...@@ -81,6 +81,7 @@ export async function scrollElement(
*/ */
export async function scrollElementIntoView( export async function scrollElementIntoView(
element, element,
/* istanbul ignore next - defaults are overridden in tests */
{ maxDuration = 500 } = {} { maxDuration = 500 } = {}
) { ) {
// Make the body's `tagName` return an upper-case string in XHTML documents // Make the body's `tagName` return an upper-case string in XHTML documents
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment