mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(tui): align attachment debounce test
This commit is contained in:
parent
ec1cf54ada
commit
576e5e1a2f
1 changed files with 1 additions and 4 deletions
|
|
@ -2102,17 +2102,14 @@ describe("Editor component", () => {
|
|||
editor.setAutocompleteProvider(mockProvider);
|
||||
|
||||
editor.handleInput("@");
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
editor.handleInput("m");
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
editor.handleInput("a");
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
editor.handleInput("i");
|
||||
|
||||
assert.strictEqual(suggestionCalls, 0);
|
||||
assert.strictEqual(editor.isShowingAutocomplete(), false);
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 250));
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
await flushAutocomplete();
|
||||
|
||||
assert.strictEqual(suggestionCalls, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue