Rewrite tests to use ES6 modules.
[dygraphs.git] / auto_tests / tests / gviz.js
index c663029..735e6f8 100644 (file)
@@ -2,14 +2,13 @@
  * Unit tests for GViz data table support.
  */
 
-describe('gviz', function() {
+import Dygraph from '../../src/dygraph';
 
-  beforeEach(function() {
-    document.body.innerHTML = "<div id='graph'></div>";
-  });
+import Util from './Util';
 
-  afterEach(function() {
-  });
+describe('gviz', function() {
+
+  cleanupAfterEach();
 
   // This is a fake version of the gviz DataTable API, which can only be
   // sourced using the google js loader.