Cypress - Component Testing
What is wrong with this Cypress test snippet?
const onToggle = cy.spy(); cy.mount(); cy.get('input[type="checkbox"]').check(); expect(onToggle).to.have.been.calledOnce();
