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

[tests-only] set extra props in unit tests #6732

Merged
merged 1 commit into from
Apr 5, 2022
Merged

Conversation

individual-it
Copy link
Member

Description

declare roles and userAssignments props in Users view unit tests

Related Issue

Motivation and Context

get rid of log output like

 console.error
    [Vue warn]: Invalid prop: type check failed for prop "userAssignments". Expected Array, got Undefined 
    
    found in
    
    ---> <UsersList>
           <Anonymous>
             <Root>

      at warn (node_modules/vue/dist/vue.runtime.common.dev.js:621:15)
      at assertProp (node_modules/vue/dist/vue.runtime.common.dev.js:1702:5)
      at validateProp (node_modules/vue/dist/vue.runtime.common.dev.js:1628:5)
      at loop (node_modules/vue/dist/vue.runtime.common.dev.js:4664:17)
      at initProps (node_modules/vue/dist/vue.runtime.common.dev.js:4695:33)
      at initState (node_modules/vue/dist/vue.runtime.common.dev.js:4638:21)
      at VueComponent.Vue._init (node_modules/vue/dist/vue.runtime.common.dev.js:5001:5)

How Has This Been Tested?

  • running unit tests

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@kulmann kulmann merged commit 1e3884e into master Apr 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the fixUsersViewUnitTests branch April 5, 2022 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants