Skip to content

Conversation

@threepointone
Copy link
Contributor

These were discovered by @SimenB in #16332. We weren't making actual assertions on some values. This PR makes the assertions, and fixes the tests.

These were discovered by @SimenB in facebook#16332. We weren't making actual assertions on some values. This PR makes the assertions, and fixes the tests.
@threepointone threepointone force-pushed the fix-broken-domcomponent-test branch from b5f674b to 5f2ea55 Compare August 9, 2019 13:45
@sizebot
Copy link

sizebot commented Aug 9, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

@threepointone threepointone merged commit f62b53d into facebook:master Aug 9, 2019
@threepointone threepointone deleted the fix-broken-domcomponent-test branch August 9, 2019 14:34
re += quoteRegexp(value) + '[\\\'"]';
}
return new RegExp(re).test(actual);
expect(new RegExp(re).test(actual)).toBe(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

this could be expect(actual).toMatch(new RegExp(re)) fwiw. If it fails, it'll print actual instead of expected false to be true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you include this in #16332?

Copy link
Contributor

Choose a reason for hiding this comment

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

Certainly! Will update tomorrow

Copy link
Contributor

Choose a reason for hiding this comment

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

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants