1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

replace outdated browser-env with jsdom

This commit is contained in:
Daniel Waxweiler
2025-05-22 21:26:37 +02:00
parent 09c0698509
commit e3f2e5b133
4 changed files with 568 additions and 1277 deletions

View File

@ -1,10 +1,11 @@
import test from 'ava'
import browserEnv from 'browser-env'
import { JSDOM } from 'jsdom'
import { createAnchorElement } from './html-creator.js'
test.beforeEach(() => {
browserEnv()
const dom = new JSDOM()
global.document = dom.window.document
})
test('#createAnchorElement usual parameters', (t) => {