-
Notifications
You must be signed in to change notification settings - Fork 35
add more tests and simplify promise use within them #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
ready for review. |
| expect(Result.isInitial(result2)).toBe(true) | ||
| }) | ||
|
|
||
| it("Interrupt symbol", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to actually test the functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, turns out I had forgotten to push the latest change. should be good for another review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request simplifies test code and significantly expands test coverage for the Atom API. The primary changes include replacing verbose promise patterns with cleaner syntax and adding 17 new comprehensive test cases.
- Refactored
await new Promise((resolve) => resolve(null))to the simplerawait Promise.resolve()throughout the test file - Added extensive test coverage for Atom features including mapping, debouncing, context utilities, type guards, modifiers, and special symbols
- Improved test readability and maintainability
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request updates the
packages/atom/test/Atom.test.tsfile to both simplify test code and add extensive new test coverage for theAtomAPI. The main change is replacing verboseawait new Promise((resolve) => resolve(null))statements with the simplerawait Promise.resolve(). Additionally, a large suite of new tests has been added to cover variousAtomfeatures, such as mapping, debouncing, context utilities, type guards, modifiers, and special symbols likeResetandInterrupt.