resources/assets/js/services/playbackService.spec.ts
Function test
has 275 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected test () {
it('only initializes once', () => {
const spy = vi.spyOn(plyr, 'setup')
playbackService.init(document.querySelector('.plyr')!)
File playbackService.spec.ts
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { nextTick, reactive } from 'vue'
import plyr from 'plyr'
import lodash from 'lodash'
import { expect, it, vi } from 'vitest'
import { noop } from '@/utils/helpers'