diff --git a/guides/using-component-harnesses.md b/guides/using-component-harnesses.md index 5b7b7fe09566..9321a50a55f2 100644 --- a/guides/using-component-harnesses.md +++ b/guides/using-component-harnesses.md @@ -130,7 +130,7 @@ it('should work', async () => { const cancel = await loader.getHarness(MatButtonHarness.with({text: 'Cancel'})); // Harness for mat-button with class 'confirm' and whose text is either 'Ok' or 'Okay'. const okButton = await loader.getHarness( - MatButtonHarness.with({selector: '.confirm', text: /^(Ok|Okay)$/}) + MatButtonHarness.with({selector: '.confirm', text: /^(Ok|Okay)$/})); }); ```