Skip to content

Commit

Permalink
refactor: test correction
Browse files Browse the repository at this point in the history
  • Loading branch information
logeekal committed Jan 22, 2023
1 parent d802860 commit 5e3a964
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Options list popover', () => {
test('available options list width responds to container size', async () => {
let popover = await mountComponent({ popoverProps: { width: 301 } });
let popoverDiv = findTestSubject(popover, 'optionsList-control-popover');
expect(popoverDiv.getDOMNode().getAttribute('style')).toBe('width: 301px;');
expect(popoverDiv.getDOMNode().getAttribute('style')).toBe('width: 301px; min-width: 300px;');

// the div cannot be smaller than 301 pixels wide
popover = await mountComponent({ popoverProps: { width: 300 } });
Expand Down

0 comments on commit 5e3a964

Please sign in to comment.