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

remove use of global in test

This commit is contained in:
Daniel Waxweiler
2021-05-03 21:39:23 +02:00
parent bfa6c00e45
commit 74522103a2
3 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
export function createAnchorElement({ text, url }) {
export function createAnchorElement({ document, text, url }) {
const a = document.createElement('a')
a.setAttribute('href', url)
a.setAttribute('target', '_blank')