mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 09:03:57 +00:00
eslint: Fix @typescript-eslint/no-unnecessary-type-assertion.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
04013cdec1
commit
2dca29ce5a
@@ -196,7 +196,7 @@ export async function check_form_contents(
|
||||
}
|
||||
|
||||
export async function get_element_text(element: ElementHandle): Promise<string> {
|
||||
const text = await (await element.getProperty("innerText"))!.jsonValue();
|
||||
const text = await (await element.getProperty("innerText")).jsonValue();
|
||||
assert.ok(typeof text === "string");
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user