resources/assets/js/components/layout/ModalWrapper.spec.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function test has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected test () {
    it.each<[string, keyof Events, User | Playable[] | Playlist | PlaylistFolder | undefined]>([
      ['add-user-form', 'MODAL_SHOW_ADD_USER_FORM', undefined],
      ['invite-user-form', 'MODAL_SHOW_INVITE_USER_FORM', undefined],
      ['edit-user-form', 'MODAL_SHOW_EDIT_USER_FORM', factory('user')],
Severity: Minor
Found in resources/assets/js/components/layout/ModalWrapper.spec.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status