Skip to content

Commit d143f1d

Browse files
Abderrahman FAWZY DEVAbderrahman FAWZY DEV
authored andcommitted
test(apollo): fixed modal test
1 parent 20be8c1 commit d143f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/apollo/react/src/Modal/__tests__/Modal.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ const expectModalOpened = async () => {
3737
await waitFor(() => {
3838
expect(defaultProps.onCancel).not.toHaveBeenCalled();
3939
});
40-
expect(dialog).toHaveAttribute("open", "true");
40+
expect(dialog).toHaveAttribute("open", "");
4141
};
4242

4343
const expectModalClosed = async () => {
4444
const dialog = getDialog();
4545
await waitFor(() => {
4646
expect(defaultProps.onCancel).toHaveBeenCalled();
4747
});
48-
expect(dialog).toHaveAttribute("open", undefined);
48+
expect(dialog).toHaveAttribute("open", null);
4949
};
5050

5151
describe("Modal", () => {

0 commit comments

Comments
 (0)