Closed LuisValgoi closed 4 years ago
test('should not appear in the document', async () => { const childText = 'inner text'
render( <ComponentValidator allowedAuthorities={['canAccessDropApplication']} authorityKey='permissions'>
{childText}
</ComponentValidator>, { route: '/todo/list' });
const child = screen.queryByAltText(childText);
expect(child).not.toBeInTheDocument(); });
test('should not appear in the document', async () => { const childText = 'inner text'
render( <ComponentValidator allowedAuthorities={['canAccessDropApplication']} authorityKey='permissions'>
{childText}
const child = screen.queryByAltText(childText);
expect(child).not.toBeInTheDocument(); });