diff --git a/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap b/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap index cd315eb7322..6ca123c579d 100644 --- a/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap +++ b/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap @@ -10267,7 +10267,7 @@ exports[`Storyshots UI|Sidebar/SidebarHeading customBrandImage 1`] = ` .emotion-0 { width: auto; - height: 100%; + height: auto; display: block; max-width: 100%; } @@ -10406,7 +10406,7 @@ exports[`Storyshots UI|Sidebar/SidebarHeading customBrandImage 1`] = ` .emotion-0 { width: auto; - height: 100%; + height: auto; display: block; max-width: 100%; } diff --git a/lib/api/src/tests/layout.test.js b/lib/api/src/tests/layout.test.js index 85e646bd325..167116fa2c4 100644 --- a/lib/api/src/tests/layout.test.js +++ b/lib/api/src/tests/layout.test.js @@ -39,7 +39,7 @@ describe('layout API', () => { it('should not change selectedPanel if it is undefined in the options', () => { layoutApi.setOptions({}); - expect(getLastSetStateArgs()[0].selectedPanel).toBeUndefined(); + expect(getLastSetStateArgs()).toBeUndefined(); }); it('should not change selectedPanel if it is undefined in the options, but something else has changed', () => { @@ -54,7 +54,7 @@ describe('layout API', () => { // second call is needed to overwrite initial layout layoutApi.setOptions({ selectedPanel: panelName }); - expect(getLastSetStateArgs()[0].selectedPanel).toBeUndefined(); + expect(getLastSetStateArgs()).toBeUndefined(); }); it('should not change selectedPanel if it is currently the same, but something else has changed', () => {