From 8ab4668a8aa76d3801f142c5265040ed0195be29 Mon Sep 17 00:00:00 2001 From: Billy Lando Date: Fri, 28 May 2021 02:40:00 +0200 Subject: [PATCH] docs: add missing parenthese to harness guide --- guides/using-component-harnesses.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)$/})); }); ```