-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cleaning in tests #727
Cleaning in tests #727
Conversation
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.
Awesome! I found two things to be changed but everything else is ok!
Two really good references for you about testing good practices are:
…ts.ts Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
…ts.ts Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
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.
Amazing work @bidoubiwa :)
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 🥳
bors merge |
defaultFacetDistribution: {}, | ||
finitePagination: false, | ||
const DEFAULT_CONTEXT = { | ||
indexUid: 'test', |
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.
I think the same idea can be applied here, don't you think? https://github.com/meilisearch/meilisearch-ruby/pull/354/files#r934317471
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.
Do you think test
is not a good index name? Also these are unit tests so they will not be done against meilisearch
expect(key).toEqual('""""""') | ||
}) | ||
test('Test to format empty string', () => { | ||
test('to format empty string', () => { |
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.
I think you missed this :)
819: Remove redundant words in tests description r=bidoubiwa a=bidoubiwa as per this comment #727 (comment) Co-authored-by: Charlotte Vermandel <charlottevermandel@gmail.com>
Based on these comments the tests are made more readable and consistent:
Test
in front of test name