Skip to content

Commit 604f808

Browse files
committed
test(popup): optimize append calls for relative cursor test
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
1 parent 40f437a commit 604f808

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

popup/mod_test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,18 @@ test({
109109
await t.step({
110110
name: `open() with relative cursor`,
111111
fn: async () => {
112-
for (let i = 0; i < 10; i++) {
113-
await fn.append(denops, 0, "0123456789");
114-
}
112+
await fn.append(denops, 0, [
113+
"0123456789",
114+
"0123456789",
115+
"0123456789",
116+
"0123456789",
117+
"0123456789",
118+
"0123456789",
119+
"0123456789",
120+
"0123456789",
121+
"0123456789",
122+
"0123456789",
123+
]);
115124
await fn.cursor(denops, [5, 5]);
116125

117126
await using popupWindow = await popup.open(denops, {

0 commit comments

Comments
 (0)