mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
28 lines
705 B
TypeScript
28 lines
705 B
TypeScript
|
import { detector } from '../../src/index'
|
||
|
|
||
|
describe('detector', () => {
|
||
|
describe('mastodon', () => {
|
||
|
const url = 'https://fedibird.com'
|
||
|
it('should be mastodon', async () => {
|
||
|
const mastodon = await detector(url)
|
||
|
expect(mastodon).toEqual('mastodon')
|
||
|
})
|
||
|
})
|
||
|
|
||
|
describe('pleroma', () => {
|
||
|
const url = 'https://pleroma.soykaf.com'
|
||
|
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')
|
||
|
})
|
||
|
})
|
||
|
})
|