From 4307fbc2fc29a90d95ed61b86db2d815645a499e Mon Sep 17 00:00:00 2001 From: Philipp Fritsche Date: Mon, 18 Oct 2021 14:38:55 +0000 Subject: [PATCH] fix istanbul ignore see https://github.com/kentcdodds/kcd-scripts/issues/218 --- src/utils/edit/fireInputEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/edit/fireInputEvent.ts b/src/utils/edit/fireInputEvent.ts index 8943d44e..7e7bcce0 100644 --- a/src/utils/edit/fireInputEvent.ts +++ b/src/utils/edit/fireInputEvent.ts @@ -21,7 +21,7 @@ export function fireInputEvent( // apply the changes before firing the input event, so that input handlers can access the altered dom and selection if (isContentEditable(element)) { applyNative(element, 'textContent', newValue) - } /* istanbul ignore else */ else if ( + } else /* istanbul ignore else */ if ( isElementType(element, ['input', 'textarea']) ) { setUIValue(element, newValue)