-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Converts some Mocha unit tests to Jest #85514
Conversation
16f4248
to
be5abe2
Compare
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
be5abe2
to
c509395
Compare
@elasticmachine merge upstream |
Pinging @elastic/kibana-operations (Team:Operations) |
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.
Thanks for making these changes @tylersmalley! ES UI changes to Console LGTM. Had a few non-blocking suggestions.
const result = agent.options.checkServerIdentity('right.com', cert); | ||
expect(result).to.be(undefined); | ||
expect(result).toBe(undefined); |
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: this can be toBeUndefined()
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.
These changes are mostly done with codemods, so going to leave it since it doesn't make any functional difference and keeps with the existing usage. We can always follow-up with a PR across the repo afterwards.
@@ -114,7 +111,7 @@ describe('plugins/console', function () { | |||
ssl: { ...config.ssl, verificationMode: 'full' }, | |||
}); | |||
|
|||
expect(agent.options.checkServerIdentity).to.be(undefined); | |||
expect(agent.options.checkServerIdentity).toBe(undefined); |
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.
Same here and in a few more places below
expect(conf).to.have.property('rejectUnauthorized', false); | ||
expect(conf.agent).to.be(undefined); | ||
expect(conf).toHaveProperty('rejectUnauthorized', false); | ||
expect(conf.agent).toBe(undefined); |
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.
And here.
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
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
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
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
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.
App Services code LGTM 🚀
Thanks for the cleanup.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> # Conflicts: # src/dev/code_coverage/ingest_coverage/either.test.js # src/dev/code_coverage/ingest_coverage/ingest_helpers.test.js # src/dev/code_coverage/ingest_coverage/team_assignment/enumerate_patterns.test.js # src/dev/code_coverage/ingest_coverage/team_assignment/enumeration_helpers.test.js # src/dev/code_coverage/ingest_coverage/transforms.test.js
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> # Conflicts: # src/dev/code_coverage/ingest_coverage/either.test.js # src/dev/code_coverage/ingest_coverage/ingest_helpers.test.js # src/dev/code_coverage/ingest_coverage/team_assignment/enumerate_patterns.test.js # src/dev/code_coverage/ingest_coverage/team_assignment/enumeration_helpers.test.js # src/dev/code_coverage/ingest_coverage/transforms.test.js
Part of #85513 in order to remove the Mocha unit test runner.