-
Notifications
You must be signed in to change notification settings - Fork 4
ASCT+B Reporter - Test Coverage Prefinal #2015
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
base: develop
Are you sure you want to change the base?
Conversation
…ls, organ-table-selector
…tions, playground, root, search
…ts-asctb-reporter
…ts-asctb-reporter
…t, service, control pane, navbar and bimodel service
…ts-asctb-reporter
|
View your CI Pipeline Execution ↗ for commit 7f40049
☁️ Nx Cloud last updated this comment at |
🚀 Preview Deploy Report✅ Successfully deployed preview here |
axdanbol
left a comment
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.
Needs to use queries/events from https://testing-library.com/ instead of manipulating the fixture for all component tests
apps/asctb-reporter/src/app/components/compare/compare.component.spec.ts
Outdated
Show resolved
Hide resolved
apps/asctb-reporter/src/app/components/compare/compare.component.spec.ts
Outdated
Show resolved
Hide resolved
apps/asctb-reporter/src/app/components/compare/compare.component.spec.ts
Outdated
Show resolved
Hide resolved
apps/asctb-reporter/src/app/components/compare/compare.component.ts
Outdated
Show resolved
Hide resolved
apps/asctb-reporter/src/app/components/compare/compare.component.ts
Outdated
Show resolved
Hide resolved
| { provide: Router, useValue: mockServices.router }, | ||
| ], | ||
| }); | ||
| return result.fixture.componentInstance; |
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.
Don't use fixture. https://testing-library.com/
| }); | ||
|
|
||
| it('should initialize and handle navigation', async () => { | ||
| const { fixture } = await setup(); |
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.
Don't use fixture. https://testing-library.com/
|
|
||
| getData(title: string) { | ||
| const index = REGISTRY.map((e) => e.urlTitle).indexOf(title); | ||
| this.http.get(REGISTRY[index].path, { responseType: 'text' }).subscribe((data) => { |
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.
Use httpResource instead
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.
Add method return types
…ts-asctb-reporter
…ts-asctb-reporter
This pull request resolves the GitHub issue:
This PR improves test coverage for the ASCT+B Reporter app: