From 73fbca7ae9f5bcd4d07c18a780e28285caf97868 Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Mon, 31 Jul 2023 13:35:07 -0500 Subject: [PATCH] tests: Correct the spelling of 'caret'. --- web/tests/compose_ui.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/tests/compose_ui.test.js b/web/tests/compose_ui.test.js index 4a21d2da4b..127f16af36 100644 --- a/web/tests/compose_ui.test.js +++ b/web/tests/compose_ui.test.js @@ -162,9 +162,9 @@ run_test("replace_syntax", ({override}) => { assert.equal(old_syntax, "a"); assert.equal(new_syntax(), "A"); }); - let prev_carat = $textbox.caret(); + let prev_caret = $textbox.caret(); compose_ui.replace_syntax("a", "A", $textbox); - assert.equal(prev_carat, $textbox.caret()); + assert.equal(prev_caret, $textbox.caret()); override(text_field_edit, "replace", (elt, old_syntax, new_syntax) => { assert.equal(elt, "textarea"); @@ -176,9 +176,9 @@ run_test("replace_syntax", ({override}) => { // and that on replacing with a different length string, the // cursor is shifted accordingly as expected $textbox.caret(5); - prev_carat = $textbox.caret(); + prev_caret = $textbox.caret(); compose_ui.replace_syntax("Bca", "$$\\pi$$", $textbox); - assert.equal(prev_carat + "$$\\pi$$".length - "Bca".length, $textbox.caret()); + assert.equal(prev_caret + "$$\\pi$$".length - "Bca".length, $textbox.caret()); }); run_test("compute_placeholder_text", () => {