html2canvas/tests/node/package.js
Niklas von Hertzen 0e8a924ea2 Fix formatting
2017-12-03 17:30:52 +08:00

16 lines
426 B
JavaScript

const assert = require('assert');
const html2canvas = require('../../');
describe('Package', () => {
it('should have html2canvas defined', () => {
assert.equal(typeof html2canvas, 'function');
});
it('should have html2canvas defined', done => {
html2canvas('').catch(err => {
assert.equal(err, 'Provided element is not within a Document');
done();
});
});
});