/* eslint-disable @typescript-eslint/no-unused-expressions */ import React from 'react'; import { IconButton } from './icon-button'; import { faOpenid } from '@fortawesome/free-brands-svg-icons'; describe('', () => { it('renders', () => { cy.mount(Button); }); it('is clickable', () => { const onClick = cy.stub(); cy.mount( Button , ); cy.getBySel('icon-button') .click() .then(() => { expect(onClick).to.be.calledOnce; }); }); });