-
Notifications
You must be signed in to change notification settings - Fork 22
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: linking a pull-request to un un-priced task does not get close #133
fix: linking a pull-request to un un-priced task does not get close #133
Conversation
tests/start.test.ts
Outdated
await expect(startStopTask(context)).rejects.toMatchObject({ | ||
logMessage: { | ||
raw: expect.stringContaining("This task does not reflect a business priority at the moment"), | ||
}, | ||
}); |
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 test can be deceiving because there could be both errors (no price label + no business priority) so you wouldn't actually know that it's not working
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.
Changed to strict equal: 03a9bdb
" › ```diff# These linked pull requests are closed: http://github.com/ubiquity/test-repo/pull/2 http://github.com/ubiquity/test-repo/pull/3" | ||
) | ||
); | ||
expect(cleanLogString(logs[3])).toMatch(cleanLogString("›Closinglinkedpull-request.")); |
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.
why did this change?
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.
Upgrading the logs package removed the diff display in favor of the CAUTION
display. I think the cleanLogString removes spaces which is why it looks like this, and I didn't want to change all the tests, but I can in a separate PR.
1253448
into
ubiquity-os-marketplace:development
Resolves #129
QA: Meniole#60