diff --git a/front/src/components/audio/podcast/Table.vue b/front/src/components/audio/podcast/Table.vue
index d8042a35d..de48aa1d4 100644
--- a/front/src/components/audio/podcast/Table.vue
+++ b/front/src/components/audio/podcast/Table.vue
@@ -46,22 +46,57 @@ const { page } = defineModels<{ page: number, }>()
-
diff --git a/front/src/composables/useLogger.ts b/front/src/composables/useLogger.ts
index e98c54718..d1c86c13a 100644
--- a/front/src/composables/useLogger.ts
+++ b/front/src/composables/useLogger.ts
@@ -53,6 +53,7 @@ const getFile = () => {
// NOTE: We're pushing all logs to the end of the event loop
const createLoggerFn = (level: LogLevel) => {
// NOTE: We don't want to handle logs ourselves in tests
+ // eslint-disable-next-line no-console
if (import.meta.env.VITEST) return console[level]
return (...args: any[]) => {
diff --git a/front/src/composables/useMarkdown.ts b/front/src/composables/useMarkdown.ts
index 2fbf0c8a7..7c6d51e3d 100644
--- a/front/src/composables/useMarkdown.ts
+++ b/front/src/composables/useMarkdown.ts
@@ -7,7 +7,7 @@ import showdown from 'showdown'
showdown.extension('openExternalInNewTab', {
type: 'output',
regex: /
/g,
- replace(text: string) {
+ replace (text: string) {
const matches = text.match(/href="(.+)">/) ?? []
const url = matches[1] ?? './'
@@ -26,7 +26,7 @@ showdown.extension('openExternalInNewTab', {
showdown.extension('linkifyTags', {
type: 'language',
regex: /#[^\W]+/g,
- replace(text: string) {
+ replace (text: string) {
return `${text}`
}
})
diff --git a/front/test/specs/composables/useMarkdown.test.ts b/front/test/specs/composables/useMarkdown.test.ts
index bb3b558ed..f3aa150f3 100644
--- a/front/test/specs/composables/useMarkdown.test.ts
+++ b/front/test/specs/composables/useMarkdown.test.ts
@@ -1,25 +1,25 @@
import { useMarkdownRaw } from '~/composables/useMarkdown'
describe('useMarkdownRaw', () => {
- describe('anchors', () => {
- it('should add target="_blank" to external links', () => {
- const html = useMarkdownRaw('https://open.audio')
- expect(html).toBe('https://open.audio
')
- })
+ describe('anchors', () => {
+ it('should add target="_blank" to external links', () => {
+ const html = useMarkdownRaw('https://open.audio')
+ expect(html).toBe('https://open.audio
')
+ })
- it('should not link raw path', () => {
- const html = useMarkdownRaw('/library/tags')
- expect(html).toBe('/library/tags
')
- })
+ it('should not link raw path', () => {
+ const html = useMarkdownRaw('/library/tags')
+ expect(html).toBe('/library/tags
')
+ })
- it('should not add target="_blank" to internal links', () => {
- const html = useMarkdownRaw('[/library/tags](/library/tags)')
- expect(html).toBe('/library/tags
')
- })
+ it('should not add target="_blank" to internal links', () => {
+ const html = useMarkdownRaw('[/library/tags](/library/tags)')
+ expect(html).toBe('/library/tags
')
+ })
- it('should handle multiple links', () => {
- const html = useMarkdownRaw('https://open.audio https://funkwhale.audio')
- expect(html).toBe('https://open.audio https://funkwhale.audio
')
- })
- })
+ it('should handle multiple links', () => {
+ const html = useMarkdownRaw('https://open.audio https://funkwhale.audio')
+ expect(html).toBe('https://open.audio https://funkwhale.audio
')
+ })
+ })
})