Skip to content

Commit

Permalink
docs(material/card): remove unneeded null coalescing from example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Jun 16, 2024
1 parent 0e36a31 commit 7aad0c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('CardHarnessExample', () => {

it('should act as a harness loader for user content', async () => {
const card = await loader.getHarness(MatCardHarness.with({title: 'Shiba Inu'}));
const footerSubcomponents = (await card.getAllHarnesses(MatButtonHarness)) ?? [];
const footerSubcomponents = await card.getAllHarnesses(MatButtonHarness);
expect(footerSubcomponents.length).toBe(2);
});
});

0 comments on commit 7aad0c3

Please sign in to comment.