prestation/assets/js/html2pdf.js-master/test/basic.js
2025-12-05 10:42:46 +00:00

12 lines
400 B
JavaScript
Executable File

describe('creation', function () {
it('html2pdf should exist', function () {
expect(window.html2pdf).to.exist;
});
it('html2pdf() should produce a thenable object', function () {
expect(html2pdf().then).to.be.a('function');
});
it('new html2pdf.Worker should produce a thenable object', function () {
expect((new html2pdf.Worker).then).to.be.a('function');
});
});