mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
16 lines
426 B
JavaScript
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();
|
|
});
|
|
});
|
|
});
|