1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-02-16 19:50:36 +01:00
connector-wordpress/source/front/html-creator-test.js
2022-06-09 20:09:08 +02:00

16 lines
370 B
JavaScript

import test from 'ava'
import browserEnv from 'browser-env'
import { createAnchorElement } from './html-creator.js'
test.beforeEach(() => {
browserEnv()
})
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')
})