resources/assets/js/services/playbackService.spec.ts

Summary

Maintainability
D
1 day
Test Coverage

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

  protected test () {
    it('only initializes once', () => {
      const spy = vi.spyOn(plyr, 'setup')

      playbackService.init(document.querySelector('.plyr')!)
Severity: Major
Found in resources/assets/js/services/playbackService.spec.ts - About 1 day to fix

    File playbackService.spec.ts has 314 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { nextTick, reactive } from 'vue'
    import plyr from 'plyr'
    import lodash from 'lodash'
    import { expect, it, vi } from 'vitest'
    import { noop } from '@/utils'
    Severity: Minor
    Found in resources/assets/js/services/playbackService.spec.ts - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status