-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: resolve type mismatch in allServers and allChannels #854
fix: resolve type mismatch in allServers and allChannels #854
Conversation
Nice catch @KhudaDad414! Would you mind adding a test covering those cases? 🙏 Also minor thing, please fix the typo in the PR title. |
Kudos, SonarCloud Quality Gate passed! |
@smoya Also added some tests for v3 of the same methods. |
const operations: OperationInterface[] = this.operations().all(); | ||
this.components().operations().forEach(operation => | ||
!operations.some(o => o.json() === operation.json()) && operations.push(operation) | ||
); |
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.allOperations().forEach(operation => operation.messages().forEach(message => ( | ||
!messages.some(m => m.json() === message.json()) && messages.push(message) | ||
))); | ||
const messages: MessageInterface[] = this.messages().all(); |
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.
💯 💯
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.
LGTM! 🚀🌔
Thank you for this super bug fix and for covering this up with tests 🙌
/rtm |
🎉 This PR is included in version 3.0.0-next-major-spec.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #853