Skip to content

Commit 9032555

Browse files
committed
add expect
1 parent 6e3dfd4 commit 9032555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/mui-material/src/Dialog/Dialog.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ describe('<Dialog />', () => {
409409
it('should override the role if provided', function test() {
410410
render(<Dialog role="alertdialog" open />);
411411

412-
screen.getByRole('alertdialog');
412+
expect(screen.getByRole('alertdialog')).not.to.equal(null);
413413
});
414414
});
415415

0 commit comments

Comments
 (0)