html2canvas/tests/node/package.js

25 lines
629 B
JavaScript
Raw Normal View History

2015-01-20 00:33:29 +03:00
var assert = require('assert');
2015-08-30 02:27:38 +03:00
var path = require('path');
2015-01-20 00:33:29 +03:00
var html2canvas = require('../../');
describe("Package", function() {
it("should have html2canvas defined", function() {
assert.equal(typeof(html2canvas), "function");
});
});
2015-08-30 02:27:38 +03:00
describe.only("requirejs", function() {
var requirejs = require('requirejs');
requirejs.config({
baseUrl: path.resolve(__dirname, '../../dist')
});
it("should have html2canvas defined", function(done) {
requirejs(['html2canvas'], function(h2c) {
assert.equal(typeof(h2c), "function");
done();
});
});
});