From 3cd7cc59000d5e59915a98fc939a3f9fdc843a71 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 9 Feb 2025 00:48:44 -0500 Subject: [PATCH] remove unstable "detector" tests from megalodon --- .../test/integration/detector.spec.ts | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 packages/megalodon/test/integration/detector.spec.ts diff --git a/packages/megalodon/test/integration/detector.spec.ts b/packages/megalodon/test/integration/detector.spec.ts deleted file mode 100644 index a7667d1c57..0000000000 --- a/packages/megalodon/test/integration/detector.spec.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { detector } from '../../src/index' - -describe('detector', () => { - describe('mastodon', () => { - const url = 'https://mastodon.social' - it('should be mastodon', async () => { - const mastodon = await detector(url) - expect(mastodon).toEqual('mastodon') - }) - }) - - describe('pleroma', () => { - const url = 'https://pleroma.io' - it('should be pleroma', async () => { - const pleroma = await detector(url) - expect(pleroma).toEqual('pleroma') - }) - }) - - describe('misskey', () => { - const url = 'https://misskey.io' - it('should be misskey', async () => { - const misskey = await detector(url) - expect(misskey).toEqual('misskey') - }) - }) - - describe('fedibird', () => { - const url = 'https://fedibird.com' - it('should be mastodon', async () => { - const fedibird = await detector(url) - expect(fedibird).toEqual('mastodon') - }, 20000) - }) - - describe('friendica', () => { - const url = 'https://squeet.me' - it('should be friendica', async () => { - const friendica = await detector(url) - expect(friendica).toEqual('friendica') - }) - }) - - describe('akkoma', () => { - const url = 'https://pleroma.noellabo.jp' - it('should be akkoma', async () => { - const akkoma = await detector(url) - expect(akkoma).toEqual('pleroma') - }) - }) - - // This domain no longer resolves, and resolution failures apparently crash jest - // describe('wildebeest', () => { - // const url = 'https://wildebeest.mirror-kt.dev' - // it('should be mastodon', async () => { - // const wildebeest = await detector(url) - // expect(wildebeest).toEqual('mastodon') - // }) - // }) - - describe('unknown', () => { - const url = 'https://google.com' - it('should be null', async () => { - const unknown = detector(url) - await expect(unknown).rejects.toThrow() - }) - }) -})