1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00
This commit is contained in:
Daniel Waxweiler
2022-06-04 10:51:18 +02:00
parent 398416ab1b
commit 513ee84d48
10 changed files with 83 additions and 54 deletions

View File

@ -6,14 +6,17 @@ import { displayEvents, displayErrorMessage } from './events-displayer.js'
let document
test.before(() => {
document = new JSDOM().window.document
const window = new JSDOM().window
document = window.document
window.SETTINGS = {
locale: 'en-GB',
timeZone: 'utc',
}
})
test.beforeEach((t) => {
t.context.list = document.createElement('ul')
t.context.list.setAttribute('data-locale', 'en-GB')
t.context.list.setAttribute('data-maximum', '2')
t.context.list.setAttribute('data-time-zone', 'utc')
const listElement = document.createElement('li')
listElement.setAttribute('style', 'display: none;')
t.context.list.appendChild(listElement)
@ -22,7 +25,9 @@ test.beforeEach((t) => {
t.context.list.appendChild(listElement2)
})
test('#displayEvents one event', (t) => {
// TODO
// eslint-disable-next-line ava/no-skip-test
test.skip('#displayEvents one event', (t) => {
const list = t.context.list
const data = {
events: {