Skip to content

Commit

Permalink
Remove some promise chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jul 19, 2024
1 parent ecabb3d commit 6cf995a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions addon/addon-test-support/@ember/test-helpers/dom/fill-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ export default async function fillIn(
}
})();

await fireEvent(element, 'input')
.then(() => fireEvent(element, 'change'))
.then(settled);

await fireEvent(element, 'input');
await fireEvent(element, 'change');
await settled();
await runHooks('fillIn', 'end', target, text);
}

0 comments on commit 6cf995a

Please sign in to comment.