biojs-vis-violin-plot
Version:
BioJS component to provide a box plot graph or bar graph hosted in Stemformatics
25 lines (20 loc) • 612 B
JavaScript
var d3 = require("d3");
var jsdom = require("jsdom-no-contextify");
//var biojsvislinegraph = require("..");
var line_graph = require("../examples/6131_data");
describe("line-graph", function() {
function d3UnitTest(callback) {
var htmlStub ='<html><body></body></html>';
return jsdom.env({
features: {QuerySelector: true},
html : htmlStub,
done: callback
});
}
it("should be defined", function(done) {
d3UnitTest( function (errors, window) {
expect(line_graph.empty()).toBe(false);
done();
});
});
});