diff --git a/front/package.json b/front/package.json index 10f3d908a..cdf4aec0c 100644 --- a/front/package.json +++ b/front/package.json @@ -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" diff --git a/front/src/composables/audio/queue.ts b/front/src/composables/audio/queue.ts index ac8e870b4..2f5afb3f5 100644 --- a/front/src/composables/audio/queue.ts +++ b/front/src/composables/audio/queue.ts @@ -136,7 +136,7 @@ export const useQueue = createGlobalState(() => { async function enqueueAt(index: number, ...newTracks: Track[]): Promise // NOTE: Only last boolean of newTracks is considered as skipFetch async function enqueueAt(index: number, ...newTracks: (Track | boolean)[]): Promise - async function enqueueAt(index: number, ...newTracks: (Track | boolean)[]): Promise { + async function enqueueAt (index: number, ...newTracks: (Track | boolean)[]): Promise { let skipFetch = false if (!isTrack(newTracks[newTracks.length - 1])) { skipFetch = newTracks.pop() as boolean @@ -164,7 +164,7 @@ export const useQueue = createGlobalState(() => { async function enqueue(...newTracks: Track[]): Promise // NOTE: Only last boolean of newTracks is considered as skipFetch async function enqueue(...newTracks: (Track | boolean)[]): Promise - async function enqueue(...newTracks: (Track | boolean)[]): Promise { + async function enqueue (...newTracks: (Track | boolean)[]): Promise { return enqueueAt(tracks.value.length, ...newTracks) } diff --git a/front/test/setup/mock-audio-context.ts b/front/test/setup/mock-audio-context.ts index 5605a00b9..375425aa5 100644 --- a/front/test/setup/mock-audio-context.ts +++ b/front/test/setup/mock-audio-context.ts @@ -4,4 +4,3 @@ import { vi } from 'vitest' vi.mock('standardized-audio-context', () => ({ AudioContext })) - diff --git a/front/test/specs/composables/audio/queue.test.ts b/front/test/specs/composables/audio/queue.test.ts index 7762c9ed2..ecb3afa5b 100644 --- a/front/test/specs/composables/audio/queue.test.ts +++ b/front/test/specs/composables/audio/queue.test.ts @@ -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 ) })