/* eslint-disable jest/expect-expect */ import { h } from 'preact'; import { axe } from 'jest-axe'; import { render, getNodeText } from '@testing-library/preact'; import SingleArticle from '../index'; const getTestArticle = () => ({ id: 1, title: 'An article title', path: 'an-article-title-di3', publishedAt: '2019-06-22T16:11:10.590Z', cachedTagList: 'discuss, javascript, beginners', user: { articles_count: 1, name: 'hello', }, }); describe('', () => { it('should have no a11y violations', async () => { const { container } = render( <> {/* Div below needed for this test to pass while preserve FlagUserModal functionality */}