-
Notifications
You must be signed in to change notification settings - Fork 970
chore: update unit test coverage to 100% on util files #2139
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
Conversation
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
Signed-off-by: Marcos Iglesias <[email protected]>
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.
always great to see unit test coverage goes up!
Signed-off-by: Marcos Iglesias <[email protected]>
const expected = undefined; | ||
const actual = TextUtils.convertText( | ||
expected, | ||
TextUtils.CaseType.TITLE_CASE | ||
); | ||
|
||
expect(actual).toEqual(''); |
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.
nit suggestion for readability so the expected
value is equal to the result
const expected = undefined; | |
const actual = TextUtils.convertText( | |
expected, | |
TextUtils.CaseType.TITLE_CASE | |
); | |
expect(actual).toEqual(''); | |
const expected = ''; | |
const actual = TextUtils.convertText( | |
undefined, | |
TextUtils.CaseType.TITLE_CASE | |
); | |
expect(actual).toEqual(expected); |
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.
Good call! A copy/paste error.
Changing it
Signed-off-by: Marcos Iglesias <[email protected]>
Description
Adds tests to cover all the util codes in the frontend
Refactors tests and file names
Motivation and Context
Increasing test coverage
How Has This Been Tested?
Ran tests
CheckList