Skip to content

Commit af141db

Browse files
authored
docs(material/card): remove unneeded null coalescing from example (#29270)
1 parent 0e36a31 commit af141db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components-examples/material/card/card-harness/card-harness-example.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('CardHarnessExample', () => {
3131

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

0 commit comments

Comments
 (0)