docs(angular): Properties that are spied upon have to be defined within componentProperties instead of on root level. (#25359)

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
This commit is contained in:
Jan Papenbrock
2023-01-06 16:13:10 +01:00
committed by GitHub
parent 7721e2be9d
commit 4baad8eb6b
+1 -1
View File
@@ -350,7 +350,7 @@ export function mount<T> (
* import { mount, createOutputSpy } from '@cypress/angular'
*
* it('Has spy', () => {
* mount(StepperComponent, { change: createOutputSpy('changeSpy') })
* mount(StepperComponent, { componentProperties: { change: createOutputSpy('changeSpy') } })
* cy.get('[data-cy=increment]').click()
* cy.get('@changeSpy').should('have.been.called')
* })