Created
May 13, 2022 20:29
-
-
Save twerske/cd7402eedc5901d7f96012a473185a32 to your computer and use it in GitHub Desktop.
hasHarness and getHarnessOrNull in Component Test Harnesses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const loader = TestbedHarnessEnvironment | |
.loader(fixture); | |
const hasButton = await loader | |
.hasHarness(MatButtonHarness) | |
const buttonHarnessOrNull = await loader | |
.getHarnessOrNull(MatButtonHarness); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment