mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 12:14:18 +00:00
fix megalodon unit tests
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"scripts": {
|
||||
"build": "tsc -p ./",
|
||||
"doc": "typedoc --out ../docs ./src",
|
||||
"test": "NODE_ENV=test jest -u --maxWorkers=3"
|
||||
"test": "cross-env NODE_ENV=test jest -u --maxWorkers=3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=15.0.0"
|
||||
|
||||
@@ -49,13 +49,14 @@ describe('detector', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('wildebeest', () => {
|
||||
const url = 'https://wildebeest.mirror-kt.dev'
|
||||
it('should be mastodon', async () => {
|
||||
const wildebeest = await detector(url)
|
||||
expect(wildebeest).toEqual('mastodon')
|
||||
})
|
||||
})
|
||||
// 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'
|
||||
|
||||
Reference in New Issue
Block a user