-
Couldn't load subscription status.
- Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/buttondocsThis issue is related to documentationThis issue is related to documentation
Description
Documentation Feedback
I just noticed an error in your button-harness-example.spec.ts
In line 11 it has the following assignment
let buttonHarness = MatButtonHarness;which was meant to be a declaration
let buttonHarness: MatButtonHarness;But it turns out the buttonHarness variable is never assigned. The usages of that variable later on in the it() functions will also not work. The variable is not needed at all!
The it() blocks can just use MatButtonHarness.with() directly.
The following changes to that spec file should be made
- remove the
let buttonHarness = MatButtonHarness;assignment in line 11 - adjust the usages of the buttonHarness variables in the second and third
it()function. frombuttonHarness.with()toMatButtonHarness.with()
Affected documentation page
https://material.angular.io/components/button/examples#button-harness
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/buttondocsThis issue is related to documentationThis issue is related to documentation