From 891716b28544f474aa2ba0d31ccc62d57d8f1e6f Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Mon, 12 Feb 2024 21:19:45 +0900 Subject: [PATCH] Drop Wildebeest support --- megalodon/src/detector.ts | 6 ------ megalodon/test/integration/detector.spec.ts | 10 +--------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/megalodon/src/detector.ts b/megalodon/src/detector.ts index 42daa0a17..95eff50c8 100644 --- a/megalodon/src/detector.ts +++ b/megalodon/src/detector.ts @@ -65,8 +65,6 @@ export const detector = async (url: string): Promise<'mastodon' | 'pleroma' | 'f return 'pleroma' case 'mastodon': return 'mastodon' - case 'wildebeest': - return 'mastodon' case 'friendica': return 'friendica' case 'firefish': @@ -89,8 +87,6 @@ export const detector = async (url: string): Promise<'mastodon' | 'pleroma' | 'f return 'pleroma' case 'mastodon': return 'mastodon' - case 'wildebeest': - return 'mastodon' case 'friendica': return 'friendica' case 'firefish': @@ -113,8 +109,6 @@ export const detector = async (url: string): Promise<'mastodon' | 'pleroma' | 'f return 'pleroma' case 'mastodon': return 'mastodon' - case 'wildebeest': - return 'mastodon' case 'friendica': return 'friendica' case 'firefish': diff --git a/megalodon/test/integration/detector.spec.ts b/megalodon/test/integration/detector.spec.ts index f24bcb32a..e10c7e668 100644 --- a/megalodon/test/integration/detector.spec.ts +++ b/megalodon/test/integration/detector.spec.ts @@ -34,21 +34,13 @@ describe('detector', () => { }) describe('akkoma', () => { - const url = 'https://pleroma.noellabo.jp' + const url = 'https://blob.cat' it('should be akkoma', async () => { const akkoma = await detector(url) expect(akkoma).toEqual('pleroma') }) }) - describe('wildebeest', () => { - const url = 'https://wildebeest.mirror-kt.dev' - it('should be mastodon', async () => { - const wildebeest = await detector(url) - expect(wildebeest).toEqual('mastodon') - }) - }) - describe('firefish', () => { const url = 'https://cybre.club' it('should be firefish', async () => {