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

[SIEM] Better URL state tests #37745

Merged

Conversation

stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented May 31, 2019

Summary

This PR removes the .skip() from and refactors the URL State tests to not use wait(). This was so frustrating! None of the methods to mock a single lodash method (throttle) were working for me. The only way I could do it was by mocking all of lodash/fp and then forcing a .mockImplementation() onto throttle. This broke a bunch of other tests, so I split out the throttle mocked tests into their own file and moved dependencies to test_dependencies.ts

Checklist

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately

@stephmilovic stephmilovic added loe:small Small Level of Effort Team:SIEM labels May 31, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/secops

@stephmilovic stephmilovic requested a review from spalger May 31, 2019 22:08
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@XavierM XavierM left a comment

Choose a reason for hiding this comment

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

LGTM, after you remove the ts-ignore ;)

@stephmilovic stephmilovic merged commit a8221cf into elastic:master Jun 3, 2019
@stephmilovic stephmilovic deleted the another-test-attempt-url-state branch June 3, 2019 17:38
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

FrankHassanabad pushed a commit to FrankHassanabad/kibana that referenced this pull request Jun 7, 2019
FrankHassanabad added a commit that referenced this pull request Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loe:small Small Level of Effort Team:SIEM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants