mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
wip
This commit is contained in:
@ -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: {
|
||||
|
Reference in New Issue
Block a user