Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 5, 2023
1 parent d1e288c commit 74a8d82
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ test('passes through flyout options when opening flyout', () => {

overlays.openFlyout(<>foo</>, {
'data-test-subj': 'foo',
closeButtonAriaLabel: 'bar',
closeButtonProps: { 'aria-label': 'bar' },
});

expect(coreOverlays.openFlyout.mock.calls[0][1]).toEqual({
'data-test-subj': 'foo',
closeButtonAriaLabel: 'bar',
closeButtonProps: { 'aria-label': 'bar' },
});
});

Expand All @@ -86,11 +86,11 @@ test('passes through modal options when opening modal', () => {

overlays.openModal(<>foo</>, {
'data-test-subj': 'foo2',
closeButtonAriaLabel: 'bar2',
closeButtonProps: { 'aria-label': 'bar2' },
});

expect(coreOverlays.openModal.mock.calls[0][1]).toEqual({
'data-test-subj': 'foo2',
closeButtonAriaLabel: 'bar2',
closeButtonProps: { 'aria-label': 'bar2' },
});
});

0 comments on commit 74a8d82

Please sign in to comment.