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

remove unneeded folder

This commit is contained in:
Daniel Waxweiler
2021-12-14 17:51:13 +01:00
parent d32320a540
commit d5419448e1
29 changed files with 8 additions and 10 deletions

View File

@ -0,0 +1,17 @@
import test from 'ava'
import { JSDOM } from 'jsdom'
import { createAnchorElement } from './html-creator'
let document
test.beforeEach(() => {
document = new JSDOM().window.document
})
test('#createAnchorElement usual parameters', (t) => {
const a = createAnchorElement({ document, text: 'a', url: 'b' })
t.is(a.tagName, 'A')
t.is(a.innerHTML, 'a')
t.is(a.getAttribute('href'), 'b')
})