-
Notifications
You must be signed in to change notification settings - Fork 21
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
UIE-206 App Startup - unit tests pt1 #5246
Conversation
a26a40a
to
055818d
Compare
- initial code shift to callable (and testable) functions.
- added unit test coverage and light ts conversions. - removed ajax module mocks that somenow snuck back into some other test files.
- removed one last orphaned ajax module mock.
import('src/libs/axe-core'); | ||
} | ||
}); | ||
doAppLoad(); |
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.
all the logic above got moved to a unit-testable function in src/libs/startup/app-loader.ts
I was able to create / delete a Galaxy app when testing, only found a small type, |
@@ -100,3 +100,17 @@ describe('makeSuccess', () => { | |||
expect(responseBody).toEqual({ message: 'Success' }); | |||
}); | |||
}); | |||
|
|||
describe('mountAjaxOverrideUtils', () => { | |||
it('mounts uitls for use by end2end tests', () => { |
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.
small nit, utils
- fixed test name typo
|
Jira Ticket: https://broadworkbench.atlassian.net/browse/UIE-206
Summary of changes:
What
Why
Testing strategy