Skip to content
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

tests: better display value tests with i18n #5720

Merged
merged 3 commits into from
Jul 26, 2018

Conversation

patrickhulce
Copy link
Collaborator

@brendankenny we do this post #5716 ?

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew jest was a going to be a trojan horse for expect(whatever).to.need.a.silly.assertion(true) :P

This works for me for #5716, if the rest are copied over?

@@ -184,3 +184,9 @@ declare global {
}
}
}

declare namespace jest {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks unnecessary?


expect.extend({
toHaveDisplayValue(received, expected) {
const obj = {displayValue: received.displayValue};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like this and logging is the only displayValue specific stuff in here. Do we want a more generalized toHaveLocalizedWhatever()?

@patrickhulce
Copy link
Collaborator Author

This works for me for #5716, if the rest are copied over?

yep 👍

@patrickhulce patrickhulce changed the base branch from i18n_all_perf_strings to master July 25, 2018 21:28
@patrickhulce patrickhulce force-pushed the better_display_value_tests branch from 9f3191e to 4cd5d26 Compare July 25, 2018 21:56
@patrickhulce patrickhulce changed the title SPIKE: better display value tests tests: better display value tests with i18n Jul 25, 2018
@paulirish paulirish merged commit 63df678 into master Jul 26, 2018
@paulirish paulirish deleted the better_display_value_tests branch July 26, 2018 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants