-
Couldn't load subscription status.
- Fork 14
CLOUDP-305862: replace urls to use public url shortener and direct link to rule #543
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ export default (ruleName, tests) => { | |
|
|
||
| errors.forEach((error, index) => { | ||
| expect(error.code).toEqual(testCase.errors[index].code); | ||
| expect(error.message).toEqual(testCase.errors[index].message); | ||
| expect(error.message).toMatch(testCase.errors[index].message); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: Why change to match? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can use regexp if needed. So basically it is equals when you need equals and regular expression when it is needed. Idea is that we do not need to put lenghtly links in the tests There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. e.g in future if we change url shortener no one will need to spent +1 hour adjusting test covering the error url |
||
| expect(error.path).toEqual(testCase.errors[index].path); | ||
| }); | ||
| }); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.