apollo_developers/bower_components/jsPDF/tests/addhtml/standard.spec.js
venbatechnologies@gmail.com 1809bcf9c9 fixed table for student details
2018-04-23 18:34:11 +05:30

22 lines
501 B
JavaScript
Executable File

'use strict'
/* global describe, it, jsPDF, comparePdf, expect */
/**
* Standard spec tests
*/
describe('Plugin: addhtml', () => {
xit('should add HTML to the document', (done) => {
document.body.innerHTML = '<h1>This is a test</h1>'
const doc = new jsPDF('p','pt','a4')
doc.addHTML(document.body,function() {
setTimeout(() => {
doc.output('datauri')
comparePdf(doc.output('datauri'), 'html-output.pdf', 'addhtml')
done()
}, 1000)
})
})
})