docs-bug(button): button-harness-example has wrong assignment #24732
Labels
area: material/button
docs
This issue is related to documentation
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Documentation Feedback
I just noticed an error in your
button-harness-example.spec.ts
In line 11 it has the following assignment
which was meant to be a declaration
But it turns out the
buttonHarness
variable is never assigned. The usages of that variable later on in theit()
functions will also not work. The variable is not needed at all!The
it()
blocks can just useMatButtonHarness.with()
directly.The following changes to that spec file should be made
let buttonHarness = MatButtonHarness;
assignment in line 11it()
function. frombuttonHarness.with()
toMatButtonHarness.with()
Affected documentation page
https://material.angular.io/components/button/examples#button-harness
The text was updated successfully, but these errors were encountered: