Skip to content

Commit

Permalink
Test more appropiately
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Apr 13, 2024
1 parent c1505b5 commit 3a0cc45
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe("useActiveElement", () => {
const input = document.createElement("input");
const cleanup = $effect.root(() => {
const activeElement = useActiveElement();
expect(activeElement.value).toBe(document.activeElement);
input.focus();
requestAnimationFrame(() => {
expect(document.activeElement).toBe(input);
Expand Down

0 comments on commit 3a0cc45

Please sign in to comment.