Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
OrbisK committed Dec 2, 2024
1 parent 360f7d2 commit a719e94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { resolve } from 'node:path'
import { defineConfig } from 'vitepress'
import { withMermaid } from "vitepress-plugin-mermaid";
import { withMermaid } from 'vitepress-plugin-mermaid'

// https://vitepress.dev/reference/site-config
export default withMermaid(defineConfig({
title: 'Vue Use Media Recorder',
mermaid:{
mermaid: {
},
description: 'A Vue Composable for MediaRecorder API',
base: '/vue-use-media-recorder/',
Expand Down
2 changes: 1 addition & 1 deletion docs/best-practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ console.log(mimeType.value, isMimeTypeSupported.value)
`MediaRecorder`. **But** `mimeType` will be set to the actual `mimeType` of the `MediaRecorder`.

So it's possible to have `isMimeTypeSupported.value === true` and `mimeType.value === undefined`.
:::
:::
2 changes: 1 addition & 1 deletion src/useMediaRecorder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ConfigurableNavigator } from '@vueuse/core'
import type { MaybeRef, MaybeRefOrGetter } from 'vue'
import type { MaybeRefOrGetter } from 'vue'
import { computedWithControl, useSupported } from '@vueuse/core'
import { tryOnScopeDispose } from '@vueuse/shared'
import { defu } from 'defu'
Expand Down
3 changes: 1 addition & 2 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe('useMediaRecorder', () => {
start,
pause,
data,
} = useMediaRecorder({ constraints: {audio: true} })
} = useMediaRecorder({ constraints: { audio: true } })

await start(1)
await vi.waitFor(() => {
Expand Down Expand Up @@ -293,6 +293,5 @@ describe('useMediaRecorder', () => {
await vi.waitFor(() => {
expect(stream.value).toBeDefined()
})

})
})

0 comments on commit a719e94

Please sign in to comment.