All files / report/mocks reportWithPageBreak.js

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16    1x           1x 1x 3x          
import { JSDOM } from 'jsdom';
 
const { document } = (new JSDOM(`
  <div id="report-page">
    <div></div>
    <div></div>
  </div>
`)).window;
const page = document.getElementById('report-page');
Object.defineProperty(Object.getPrototypeOf(page), 'clientHeight', {
  get: () => 800,
  configurable: true,
});
 
export default page;