feat(front): lint test directory

This commit is contained in:
Kasper Seweryn 2023-05-06 14:45:55 +02:00 committed by jo
parent a8b7e07a86
commit 719c3171f8
No known key found for this signature in database
GPG Key ID: B2FEC9B22722B984
4 changed files with 6 additions and 7 deletions

View File

@ -11,7 +11,7 @@
"serve": "vite preview",
"test": "vitest run",
"test:unit": "vitest run",
"lint": "eslint --ext .ts,.js,.vue,.json,.html src public/embed.html",
"lint": "eslint --ext .ts,.js,.vue,.json,.html src test public/embed.html",
"lint:tsc": "vue-tsc --noEmit",
"fix-fomantic-css": "scripts/fix-fomantic-css.sh",
"postinstall": "yarn run fix-fomantic-css"

View File

@ -4,4 +4,3 @@ import { vi } from 'vitest'
vi.mock('standardized-audio-context', () => ({
AudioContext
}))

View File

@ -1,7 +1,7 @@
import { useQueue } from '~/composables/audio/queue'
import type { Track } from '~/types'
const { tracks, enqueue, dequeue, clear, reorder, currentIndex, shuffle } = useQueue()
const { tracks, enqueue, dequeue, clear, reorder, currentIndex } = useQueue()
describe('currentIndex', () => {
beforeEach(async () => {
@ -9,7 +9,7 @@ describe('currentIndex', () => {
await enqueue(
{ id: 1, uploads: [] } as any as Track,
{ id: 2, uploads: [] } as any as Track,
{ id: 3, uploads: [] } as any as Track,
{ id: 3, uploads: [] } as any as Track
)
})
@ -85,7 +85,7 @@ describe('Ordered queue', () => {
await enqueue(
{ id: 1, uploads: [] } as any as Track,
{ id: 2, uploads: [] } as any as Track,
{ id: 3, uploads: [] } as any as Track,
{ id: 3, uploads: [] } as any as Track
)
})