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

first commit

This commit is contained in:
Daniel Waxweiler
2021-01-08 14:08:40 +01:00
commit 1d7fe7a0a3
28 changed files with 12583 additions and 0 deletions

View File

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