spiritix / php-chrome-html2pdf

A PHP library for converting HTML to PDF using Google Chrome
MIT License
112 stars 29 forks source link

Mocha tests are failing #19

Closed spiritix closed 2 months ago

spiritix commented 4 years ago

Some JS tests are failing:

$ npm test
> php-chrome-html2pdf@1.5.0 test /home/travis/build/spiritix/php-chrome-html2pdf
> ./node_modules/mocha/bin/mocha --timeout=10000 tests/js
  Converter
    getDefaultOptions
      ✓ returns an object
    getOptions
      ✓ returns the merged options object
    run
      1) returns a buffer
  2 passing (10s)
  1 failing
  1) Converter
       run
         returns a buffer:
     Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/travis/build/spiritix/php-chrome-html2pdf/tests/js/test.js)

npm ERR! Test failed.  See above for more details.
The command "npm test" exited with 1.

See https://travis-ci.org/github/spiritix/php-chrome-html2pdf/jobs/695030310

The library works fine, must be something related to the tests.