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

feat(nav-bar-content): add table section to requirements view #2690

Merged

Conversation

waabid
Copy link
Member

@waabid waabid commented May 15, 2020

Description of changes

Also adds the update handler to the requirementView; like the test step view.

Pull request checklist

  • [.] Addresses an existing issue: #0000
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • [.] (UI changes only) Added screenshots/GIFs to description above
  • [.] (UI changes only) Verified usability with NVDA/JAWS

@waabid waabid requested a review from a team as a code owner May 15, 2020 01:31
isStepEnabled: boolean;
isStepScanned: boolean;
isRequirementEnabled: boolean;
isRequirementScanned: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for renaming this!


test('componentDidUpdate', () => {
const newProps = cloneDeep(props);
newProps.deps.assessmentViewUpdateHandler = updateHandlerMock.object;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious why we have to set the assessmentViewUpdateHandler here after cloneDeep?

Copy link
Member Author

Choose a reason for hiding this comment

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

Clone deep won't/can't clone the functional properties on an object. That is to say: the mock would need to be either re-created or in this case, re-assigned.

@waabid waabid merged commit dd08300 into microsoft:master May 15, 2020
@waabid waabid deleted the updateRequirementsViewWithTableSection branch January 27, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants