standard.spec.js 335 B

1234567891011121314
  1. 'use strict'
  2. /* global describe, it, jsPDF, comparePdf, expect */
  3. /**
  4. * Standard spec tests
  5. */
  6. describe('Autoprint', () => {
  7. it('should generate an autoprinting document', () => {
  8. const doc = jsPDF()
  9. doc.text(10, 10, 'This is a test')
  10. doc.autoPrint()
  11. comparePdf(doc.output(), 'autoprint.pdf', 'autoprint')
  12. })
  13. })