mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-03 19:27:28 +00:00
merge: Fix Megalodon unit tests on Windows (!787)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/787 Approved-by: Marie <github@yuugi.dev> Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
commit
aa220a0411
2 changed files with 9 additions and 8 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue