-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MM-59579 Add tests for utils/server #8456
Conversation
await loginToServer(theme, serverUrl, displayName, configWithSingleSSO, license); | ||
|
||
expect(showModal).toHaveBeenCalledWith(Screens.SSO, '', expect.any(Object), expect.any(Object)); | ||
});*/ |
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'm going to file a ticket to look into this one. It's a bit too dangerous of code for me to touch without the full context.
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! thanks @jwilander
|
||
describe('loginOptions', () => { | ||
it('should return correct login options', () => { | ||
const config = { |
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.
perhaps we should have a test helper that gives us back the base config and license objects.
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.
It hasn't come up too often so far when writing tests but definitely something we should consider if we find ourselves defining the config/license from scratch often
Summary
Increase test coverage of utils/server to 90.66%.
Ticket Link
https://mattermost.atlassian.net/browse/MM-59579
Checklist
E2E iOS tests for PR
.Device Information
This PR was tested on: n/a
Screenshots
n/a
Release Note