Rewrite tests to use ES6 modules.
[dygraphs.git] / auto_tests / tests / visibility.js
index 5f54639..1cc3764 100644 (file)
@@ -3,14 +3,12 @@
  * @author sergeyslepian@gmail.com
  */
 
-describe("visibility", function() {
+import Dygraph from '../../src/dygraph';
+import Util from './Util';
 
-beforeEach(function() {
-  document.body.innerHTML = "<div id='graph'></div>";
-});
+describe("visibility", function() {
 
-afterEach(function() {
-});
+cleanupAfterEach();
 
 /**
  * Does a bunch of the shared busywork of setting up a graph and changing its visibility.