diff --git a/packages/layout/tests/page/getSize.test.js b/packages/layout/tests/page/getSize.test.js index f03edef92..97694c39b 100644 --- a/packages/layout/tests/page/getSize.test.js +++ b/packages/layout/tests/page/getSize.test.js @@ -74,14 +74,14 @@ describe('page getSize', () => { const size = getSize(page); expect(size).toHaveProperty('width', 100); - expect(size).toHaveProperty('height', undefined); + expect(size).toHaveProperty('height', 100); }); test('Should accept size number in landscape mode', () => { const page = { props: { size: 100, orientation: 'landscape' } }; const size = getSize(page); - expect(size).toHaveProperty('width', undefined); + expect(size).toHaveProperty('width', 100); expect(size).toHaveProperty('height', 100); }); }); diff --git a/packages/layout/tests/steps/resolvePageSizes.test.js b/packages/layout/tests/steps/resolvePageSizes.test.js index 16e640e17..7811c1eb7 100644 --- a/packages/layout/tests/steps/resolvePageSizes.test.js +++ b/packages/layout/tests/steps/resolvePageSizes.test.js @@ -113,7 +113,7 @@ describe('layout resolvePageSizes', () => { const result = resolvePageSizes(root); expect(result.children[0].style).toHaveProperty('width', 100); - expect(result.children[0].style).toHaveProperty('height', undefined); + expect(result.children[0].style).toHaveProperty('height', 100); }); test('Should accept size number in landscape mode', () => { @@ -125,7 +125,7 @@ describe('layout resolvePageSizes', () => { }; const result = resolvePageSizes(root); - expect(result.children[0].style).toHaveProperty('width', undefined); + expect(result.children[0].style).toHaveProperty('width', 100); expect(result.children[0].style).toHaveProperty('height', 100); });