html-to-pdf-converter
Version:
HTML to PDF converter with support for HEADERS, FOOTERS and page numbers
18 lines • 526 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const size_1 = require("./size");
const dimension = {
width: 1000,
height: 500,
};
describe('getRelativeHeight()', () => {
it('should return height', () => {
expect(size_1.getRelativeHeight(dimension, 500)).toEqual(250);
});
});
describe('getRelativeWidth()', () => {
it('should return width', () => {
expect(size_1.getRelativeWidth(dimension, 250)).toEqual(500);
});
});
//# sourceMappingURL=size.spec.js.map