/**
* @fileoverview Test cases for DygraphOptions.
*/
+
+import Dygraph from '../../src/dygraph';
+import DygraphOptions from '../../src/dygraph-options';
+import OPTIONS_REFERENCE from '../../src/dygraph-options-reference';
+
describe("dygraph-options-tests", function() {
+cleanupAfterEach();
+
var graph;
beforeEach(function() {
- document.body.innerHTML = "<div id='graph'></div>";
graph = document.getElementById("graph");
});
-afterEach(function() {
-});
-
/*
* Pathalogical test to ensure getSeriesNames works
*/
};
it('testLogWarningForNonexistentOption', function() {
- if (typeof(Dygraph.OPTIONS_REFERENCE) === 'undefined') {
+ if (!OPTIONS_REFERENCE) {
return; // this test won't pass in non-debug mode.
}
});
it('testOnlyLogsEachWarningOnce', function() {
- if (typeof(Dygraph.OPTIONS_REFERENCE) === 'undefined') {
+ if (!OPTIONS_REFERENCE) {
return; // this test won't pass in non-debug mode.
}